[wiki] [sites] wiki updated
changeset: 651:e7af13b57348
tag: tip
user: Rob Pilling <my name at gmail dot com>
date: Mon Dec 06 22:25:25 2010 +0000
files: dwm.suckless.org/scripts/simple_monitors.md
description:
Added volume script and fixed grammar
diff -r a0628ba5c9bd -r e7af13b57348 dwm.suckless.org/scripts/simple_monitors.md
--- a/dwm.suckless.org/scripts/simple_monitors.md Mon Dec 06 16:06:34 2010 -0500
+++ b/dwm.suckless.org/scripts/simple_monitors.md Mon Dec 06 22:25:25 2010 +0000
_AT_@ -9,7 +9,7 @@
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)%
_AT_@ -30,4 +30,11 @@
$(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.
Received on Tue Dec 07 2010 - 00:43:45 CET
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:33 CEST