wmbiff: Fix segfault when -display or -geometry argument is missing.
[dockapps.git] / wmsupermon / example-wmsupermonrc
blob8d3bb6a1ab0adc542ae27ddbe09dd420c5a94b0e
1 [mem]
2 Source = /proc/meminfo
3 Regex = {MemTotal: *([0-9]+).*MemFree: *([0-9]+).*Buffers: *([0-9]+) kB.Cached: *([0-9]+)}[\1 - \2 - \3 - \4]s
4 Scale=1024
6 [i/o]
7 Source = /proc/diskstats
8 #major minor name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq
9 # note that "name" part is limited to letters!
10 # thus we count, e.g. "sda" line, but bit "sda1", "sda2", etc.
11 Regex = /^( +[0-9]+){2} [a-z]+ ([0-9]+) ([0-9]+ ){3}([0-9]+) /DIFF(SUM(\2+\4))/
13 # cpu load
14 [cpu]
15 Source = /proc/stat
16 Regex = {cpu  ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)}{DIFF(\1+\2+\3+0.01)/DIFF(\1+\2+\3+\4+0.01)}
18 # cpu load - CPU0
19 [cp0]
20 Source = /proc/stat
21 Regex = {cpu0 ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)}{DIFF(\1+\2+\3+0.01)/DIFF(\1+\2+\3+\4+0.01)}
23 # cpu load - CPU1
24 [cp1]
25 Source = /proc/stat
26 Regex = {cpu1 ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)}{DIFF(\1+\2+\3+0.01)/DIFF(\1+\2+\3+\4+0.01)}
28 # cpu frequency
29 [mhz]
30 Source = /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
31 Scale = 1000
33 # temperature from the second sensor (cpu temperature on my motherboard)
34 [Tem]
35 Source = /sys/bus/i2c/drivers/w83627hf/9191-0290/temp2_input
36 Scale  = 1000
37 Range  = 37 .. 55
39 # second fan speed (cpu fan on my motherboard)
40 [fan]
41 Source = /sys/bus/i2c/drivers/w83627hf/9191-0290/fan2_input
43 # eth0 - download speed
44 [in]
45 Source   = /proc/net/dev
46 Regex    = !eth0:([0-9]+) +([0-9]+ +){7}([0-9]+) !DIFF(\1)!
47 Scale    = 1000
48 Action   = xterm -e "netstat -a|less"
50 # eth0 - upload speed
51 [out]
52 Source   = /proc/net/dev
53 Regex    = !eth0:([0-9]+) +([0-9]+ +){7}([0-9]+) !DIFF(\3)!
54 Scale    = 1000
55 Action   = xterm -e "netstat -a|less"
57 # network monitor - down- and upload speed, alternating
58 [[wm1]]
59 in = number -label
60 in = graph -scaledown smooth
62 out = number  -label
63 out = graph -scaledown -smooth
65 # CPU monitor - cpu load, frequency, temperature, fan speed
66 [[wm2]]
67 cpu = graph -small
68 Tem = bar -label
69 mhz = number -label
70 fan = number -label
72 # memory and i/o monitor
73 [[wm3]]
74 mem = number -label
75 mem = graph -small
76 i/o = number -label
77 i/o = graph -small