summaryrefslogtreecommitdiff
path: root/.wmii/rbar_battery
blob: 0e7079973b1b555e1da22935413864f4d33a81d5 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
. "$HOME/.wmii/include.sh"

priority=$1

while connected_to_x_server; do
	acpi -b |a "$WMII_DIR/rbar/${priority}_battery"
	sleep 1
done