summaryrefslogtreecommitdiffhomepage
path: root/Plugins/Monitors.hs
diff options
context:
space:
mode:
authorJose A. Ortega Ruiz <jao@gnu.org>2010-01-17 23:15:00 +0100
committerJose A. Ortega Ruiz <jao@gnu.org>2010-01-17 23:15:00 +0100
commit75780faeb8d16686f8bedd169e04b430b4618e19 (patch)
tree1e076af70433a037e54f03eb875e95cee01089b6 /Plugins/Monitors.hs
parent796d67c238deaa23fcc08d116d16193c8c6e014f (diff)
downloadxmobar-75780faeb8d16686f8bedd169e04b430b4618e19.tar.gz
xmobar-75780faeb8d16686f8bedd169e04b430b4618e19.tar.bz2
New MultiCpu monitor that works like Cpu for multiple CPU cores
Ignore-this: 64152f888f1e007612dc8e1f1eace875 darcs-hash:20100117221500-40885-23930af67e2b5446712b1bced29ce56ec696965e.gz
Diffstat (limited to 'Plugins/Monitors.hs')
-rw-r--r--Plugins/Monitors.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Plugins/Monitors.hs b/Plugins/Monitors.hs
index 07662be..72e0d50 100644
--- a/Plugins/Monitors.hs
+++ b/Plugins/Monitors.hs
@@ -22,6 +22,7 @@ import Plugins.Monitors.Net
import Plugins.Monitors.Mem
import Plugins.Monitors.Swap
import Plugins.Monitors.Cpu
+import Plugins.Monitors.MultiCpu
import Plugins.Monitors.Batt
import Plugins.Monitors.Thermal
import Plugins.Monitors.CpuFreq
@@ -32,6 +33,7 @@ data Monitors = Weather Station Args Rate
| Memory Args Rate
| Swap Args Rate
| Cpu Args Rate
+ | MultiCpu Args Rate
| Battery Args Rate
| BatteryP [String] Args Rate
| Thermal Zone Args Rate
@@ -54,6 +56,7 @@ instance Exec Monitors where
alias (Memory _ _) = "memory"
alias (Swap _ _) = "swap"
alias (Cpu _ _) = "cpu"
+ alias (MultiCpu _ _) = "multicpu"
alias (Battery _ _) = "battery"
alias (BatteryP _ _ _)= "battery"
alias (CpuFreq _ _) = "cpufreq"
@@ -64,6 +67,7 @@ instance Exec Monitors where
start (Memory a r) = runM a memConfig runMem r
start (Swap a r) = runM a swapConfig runSwap r
start (Cpu a r) = runM a cpuConfig runCpu r
+ start (MultiCpu a r) = runM a multiCpuConfig runMultiCpu r
start (Battery a r) = runM a battConfig runBatt r
start (BatteryP s a r) = runM a battConfig (runBatt' s) r
start (CpuFreq a r) = runM a cpuFreqConfig runCpuFreq r