commit 51eb1730c5776d60b4b2e3c27f08a96f0f94bd54 parent 0822a72c1ff6c3a4c89dcb84b4ebe56ab9a2c7fd Author: Antoine Amarilli <a3nm@a3nm.net> Date: Tue, 10 Apr 2012 13:55:45 +0200 add battery info to wmii statusbar Diffstat:
wmii/wmiirc | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/wmii/wmiirc b/wmii/wmiirc @@ -60,7 +60,7 @@ wmiir write /tagrules <<! # Status Bar Info status() { - echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date) + echo -n $(acpi | cut -d ' ' -f 4) $(uptime | sed 's/.*://; s/,//g') '|' $(date) } status2() { @@ -183,6 +183,10 @@ Key $MODKEY-w eval "sensible-browser" & Key $MODKEY-x sh -c "xtrlock" & +Key $MODKEY-w + eval "xdotool click 2" & +Key $MODKEY-z + eval "xsel -x; xsel -b | xsel -i; xdotool click 2; xsel -x" & Key $MODKEY-c amixer -c 0 set Master 2dB-