From 86b1a11dfcbab990a07a236f41deefe0aaf4ed5e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 27 Mar 2014 17:30:22 -0400 Subject: post-merge clean --- .config/wmii-hg/rbar_battery | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.config/wmii-hg/rbar_battery') 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 -- cgit v1.2.3-2-g168b