summaryrefslogtreecommitdiff
path: root/scripts/status.sh
blob: c9a7e9a04cc8773d8487fdcb8ebdc10a25cfadcb (plain)
1
2
3
4
5
6
7
8
9
while true; do

  battery="$(cat /sys/class/power_supply/BAT1/capacity)"
	volume="$(amixer sget Master | awk -F"[][]" '/Left:/ { print $2 }')"
	song="$(cmus-remote -Q | grep 'tag title' | cut -d ' ' -f 3-)"

	xsetroot -name "  $battery | ♫ $song |  $volume |  $(date +%d) |  $(date +%R)"
	sleep 0.1
done