summaryrefslogtreecommitdiff
path: root/.wmii/rbar_battery
blob: 7a7f24f99a138fe3c917c2934fb72705c5c60610 (plain)
1
2
3
4
5
6
7
8
9
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