summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/rbar_battery
blob: f632f7eee7ba8162c74dab071a565a3066420883 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
. include.sh

priority=$1

while connected_to_x_server; do
	printf 'label %s\n' "$(acpi -b)" >> "$WMII_DIR/rbar/${priority}_battery"
	sleep 1
done