diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-27 17:30:22 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-27 17:30:22 -0400 |
commit | 86b1a11dfcbab990a07a236f41deefe0aaf4ed5e (patch) | |
tree | 00b1b50d9b616fd1c22ef5c51c007e24d1644ccc /.config/wmii-hg/rbar_battery | |
parent | 9e79a6c3bbc37c2eec19e055566440f0b1173c5c (diff) |
post-merge clean
Diffstat (limited to '.config/wmii-hg/rbar_battery')
-rwxr-xr-x | .config/wmii-hg/rbar_battery | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.config/wmii-hg/rbar_battery b/.config/wmii-hg/rbar_battery index 7a7f24f..f632f7e 100755 --- a/.config/wmii-hg/rbar_battery +++ b/.config/wmii-hg/rbar_battery @@ -1,10 +1,9 @@ #!/bin/bash -. "$HOME/.wmii/include.sh" +. include.sh priority=$1 -set -e -while true; do - acpi -b |a "$WMII_DIR/rbar/${priority}_battery" +while connected_to_x_server; do + printf 'label %s\n' "$(acpi -b)" >> "$WMII_DIR/rbar/${priority}_battery" sleep 1 done |