summaryrefslogtreecommitdiff
path: root/.wmii/rbar_battery
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-08-21 22:47:23 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-08-21 22:47:23 -0400
commit510fea7116c6bd01824af38b4e516b6e19fded81 (patch)
tree99bc145f164a450b95c9a35a1b2e0315ca1d98bb /.wmii/rbar_battery
parent69e7a06e976bbad54684b8c650853020c8352adb (diff)
parent6368f5b020f65de535ce74ad69bf64702daddb48 (diff)
Merge branch 'hp-dv6426us-par'
Diffstat (limited to '.wmii/rbar_battery')
-rwxr-xr-x.wmii/rbar_battery10
1 files changed, 10 insertions, 0 deletions
diff --git a/.wmii/rbar_battery b/.wmii/rbar_battery
new file mode 100755
index 0000000..7a7f24f
--- /dev/null
+++ b/.wmii/rbar_battery
@@ -0,0 +1,10 @@
+#!/bin/bash
+. "$HOME/.wmii/include.sh"
+
+priority=$1
+
+set -e
+while true; do
+ acpi -b |a "$WMII_DIR/rbar/${priority}_battery"
+ sleep 1
+done