summaryrefslogtreecommitdiffhomepage
path: root/Plugins/Monitors/Disk.hs
diff options
context:
space:
mode:
authorJose A Ortega Ruiz <jao@gnu.org>2010-03-20 03:08:48 +0100
committerJose A Ortega Ruiz <jao@gnu.org>2010-03-20 03:08:48 +0100
commit384659364b78a5b763aa07e29e767073d303c6e7 (patch)
treec79c9caa7dbe93603a4fd409adc7ae11103d50ee /Plugins/Monitors/Disk.hs
parent01931fdc886896e1700da4a37103e4df0d69e344 (diff)
downloadxmobar-384659364b78a5b763aa07e29e767073d303c6e7.tar.gz
xmobar-384659364b78a5b763aa07e29e767073d303c6e7.tar.bz2
Bars for DiskIO
Ignore-this: 50ae0b5d07377a8563acdede4dba31cf darcs-hash:20100320020848-748be-4c1b8f64b056f026328348a3eb8ca6f367544285.gz
Diffstat (limited to 'Plugins/Monitors/Disk.hs')
-rw-r--r--Plugins/Monitors/Disk.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Plugins/Monitors/Disk.hs b/Plugins/Monitors/Disk.hs
index f3c66a1..4cbe692 100644
--- a/Plugins/Monitors/Disk.hs
+++ b/Plugins/Monitors/Disk.hs
@@ -24,7 +24,8 @@ import qualified Data.ByteString.Lazy.Char8 as B
import Data.List (isPrefixOf, find, intercalate)
diskIOConfig :: IO MConfig
-diskIOConfig = mkMConfig "" ["total", "read", "write"]
+diskIOConfig = mkMConfig "" ["total", "read", "write",
+ "totalbar", "readbar", "writebar"]
diskUConfig :: IO MConfig
diskUConfig = mkMConfig ""
@@ -105,8 +106,9 @@ devTemplates disks mounted dat =
runDiskIO' :: (String, [Float]) -> Monitor String
runDiskIO' (tmp, xs) = do
s <- mapM (showWithColors speedToStr) xs
+ b <- mapM (showLogBar 0.8) xs
setConfigValue tmp template
- parseTemplate s
+ parseTemplate $ s ++ b
runDiskIO :: [(String, String)] -> [String] -> Monitor String
runDiskIO disks _ = do