commit c3ba994ada7c81845fad7cd28cbaffd3443afbf0 parent 272eaa2daf622fef5f494507e4f7c92dd6015834 Author: Jacob Todd <jaketodd422@gmail.com> Date: Sun, 5 Dec 2010 16:59:31 -0500 add simple monitors to dwm scripts. Diffstat:
A | dwm.suckless.org/scripts/simple_monitors.md | | | 33 | +++++++++++++++++++++++++++++++++ |
1 file changed, 33 insertions(+), 0 deletions(-)
diff --git a/dwm.suckless.org/scripts/simple_monitors.md b/dwm.suckless.org/scripts/simple_monitors.md @@ -0,0 +1,33 @@ +Simple Monitors +=== + +Description +--- + +These are just very simple monitors for the dwm status bar. + +Battery +--- + +You're battery may be called something different, so check /proc/acpi for it's name. +This returns the remaining battery power as a percentage. + + $(echo $(cat /proc/acpi/battery/BAT0/state| grep remaining| awk '{print $3}') / 8900| hoc| cut -c3,4)% + +hoc comes from plan9port or 9base. + +Ram used +--- + +Return the amount of ram used, in megabytes. + + $(free -m | grep cache\: | awk '{ print $3 }')M + +Temperature +--- + +Returns the temperature of the cpu, in celcius. + + $(awk '{ print $2 }' /proc/acpi/thermal_zone/THM0/temperature)C + +I told you they were simple.