commit 138e8991421ebca4db85e6d942df0bd6926ff2a5
parent 89119c494decc9a6d1057f3d33c2e81f20b6edba
Author: Rob Pilling <my name at gmail dot com>
Date: Mon, 6 Dec 2010 22:25:25 +0000
Added volume script and fixed grammar
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dwm.suckless.org/scripts/simple_monitors.md b/dwm.suckless.org/scripts/simple_monitors.md
@@ -9,7 +9,7 @@ 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. Also, change 89000 to whatever the capacity is for your battery.
+Your battery may be called something different, so check /proc/acpi for its name. Also, change 89000 to whatever the capacity is for your battery.
This returns the remaining battery power as a percentage.
$(echo $(cat /proc/acpi/battery/BAT0/state| grep remaining| awk '{print $3}') / 89000| hoc| cut -c3,4)%
@@ -30,4 +30,11 @@ Returns the temperature of the cpu, in celcius.
$(awk '{ print $2 }' /proc/acpi/thermal_zone/THM0/temperature)C
+Volume
+---
+
+ amixer get Front | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/'
+
+Change "Front" to your audio device
+
I told you they were simple.