summaryrefslogtreecommitdiff
path: root/.wmii/rbar_battery
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-10-15 20:27:06 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-10-15 20:27:06 -0400
commit0ce7b10e4804e1cc5e7410ee0b9817889c7c721c (patch)
tree8fdbc3c24a1d89dae04e0cfe9239b647c7427af6 /.wmii/rbar_battery
parent33febe8b8a5a6a237d6e3617f7c96e783a548378 (diff)
parent3515a46d330af1d09bf1e0b963c13a86c2dbe8a8 (diff)
Merge branch 'master' into thinkpenguin-par-2
Diffstat (limited to '.wmii/rbar_battery')
-rwxr-xr-x.wmii/rbar_battery5
1 files changed, 2 insertions, 3 deletions
diff --git a/.wmii/rbar_battery b/.wmii/rbar_battery
index 7a7f24f..ae8980a 100755
--- a/.wmii/rbar_battery
+++ b/.wmii/rbar_battery
@@ -3,8 +3,7 @@
priority=$1
-set -e
-while true; do
- acpi -b |a "$WMII_DIR/rbar/${priority}_battery"
+while connected_to_x_server; do
+ acpi -b >> "$WMII_DIR/rbar/${priority}_battery"
sleep 1
done