summaryrefslogtreecommitdiff
path: root/.config/wmii/rbar_battery
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-27 14:43:14 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-27 17:31:06 -0500
commit15991190790781d774ae7533fc2287e459943870 (patch)
tree678bcf9177d4e512db8c9b8e9b6fd386c55cd156 /.config/wmii/rbar_battery
parentbd4948b452a45c70111c51d25b5d51ba75b1116e (diff)
mv .wmii .config/wmii; ln -s .config/wmii .wmii
Diffstat (limited to '.config/wmii/rbar_battery')
-rwxr-xr-x.config/wmii/rbar_battery9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/wmii/rbar_battery b/.config/wmii/rbar_battery
new file mode 100755
index 0000000..ae8980a
--- /dev/null
+++ b/.config/wmii/rbar_battery
@@ -0,0 +1,9 @@
+#!/bin/bash
+. "$HOME/.wmii/include.sh"
+
+priority=$1
+
+while connected_to_x_server; do
+ acpi -b >> "$WMII_DIR/rbar/${priority}_battery"
+ sleep 1
+done