diff options
author | Nathaniel Wesley Filardo <nwf@cs.jhu.edu> | 2014-05-29 02:16:07 -0400 |
---|---|---|
committer | Nathaniel Wesley Filardo <nwf@cs.jhu.edu> | 2014-05-29 13:16:38 -0400 |
commit | 8f9c5f1ecec8ee13bb0e803a1f26140bb8d8357e (patch) | |
tree | 41dab8832b3eb824c319ce49e20f1d30511eaba8 /src/Plugins/Monitors.hs | |
parent | f661ea6c7ac3b3884a7a6fc7fec40dedbf2fff05 (diff) | |
download | xmobar-8f9c5f1ecec8ee13bb0e803a1f26140bb8d8357e.tar.gz xmobar-8f9c5f1ecec8ee13bb0e803a1f26140bb8d8357e.tar.bz2 |
A simple CatInt monitor
Diffstat (limited to 'src/Plugins/Monitors.hs')
-rw-r--r-- | src/Plugins/Monitors.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Plugins/Monitors.hs b/src/Plugins/Monitors.hs index 27db417..860da71 100644 --- a/src/Plugins/Monitors.hs +++ b/src/Plugins/Monitors.hs @@ -35,6 +35,7 @@ import Plugins.Monitors.CoreTemp import Plugins.Monitors.Disk import Plugins.Monitors.Top import Plugins.Monitors.Uptime +import Plugins.Monitors.CatInt #ifdef IWLIB import Plugins.Monitors.Wireless #endif @@ -69,6 +70,7 @@ data Monitors = Weather Station Args Rate | TopProc Args Rate | TopMem Args Rate | Uptime Args Rate + | CatInt Int FilePath Args Rate #ifdef IWLIB | Wireless Interface Args Rate #endif @@ -116,6 +118,7 @@ instance Exec Monitors where alias (DiskU _ _ _) = "disku" alias (DiskIO _ _ _) = "diskio" alias (Uptime _ _) = "uptime" + alias (CatInt n _ _ _) = "cat" ++ (show n) #ifdef IWLIB alias (Wireless i _ _) = i ++ "wi" #endif @@ -151,6 +154,7 @@ instance Exec Monitors where start (DiskU s a r) = runM a diskUConfig (runDiskU s) r start (DiskIO s a r) = startDiskIO s a r start (Uptime a r) = runM a uptimeConfig runUptime r + start (CatInt _ s a r) = runM a catIntConfig (runCatInt s) r #ifdef IWLIB start (Wireless i a r) = runM (a ++ [i]) wirelessConfig runWireless r #endif |