summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-battery
blob: 1b3bb2448fc2e3b1fa0764ca33b8726120373972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

status=$(apm -b)

[ "$status" -eq 3 ] && echo ""

case $(echo $(apm -l) / 20 | bc) in
	"0") printf "";;
	"1") printf " ";;
	"2") printf " ";;
	"3") printf " ";;
	"4") printf " ";;
esac