diff options
Diffstat (limited to '.config/wmii-hg/rbar_battery')
-rwxr-xr-x | .config/wmii-hg/rbar_battery | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/wmii-hg/rbar_battery b/.config/wmii-hg/rbar_battery new file mode 100755 index 0000000..f632f7e --- /dev/null +++ b/.config/wmii-hg/rbar_battery @@ -0,0 +1,9 @@ +#!/bin/bash +. include.sh + +priority=$1 + +while connected_to_x_server; do + printf 'label %s\n' "$(acpi -b)" >> "$WMII_DIR/rbar/${priority}_battery" + sleep 1 +done |