summaryrefslogtreecommitdiffstats
path: root/lib/panel/volmon
blob: 0b1b87ef55a2ca7dead0a66d0a82526087f6f445 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

main()
{
	vol="$(amixer get Master,0 | \
		sed -n 's/^.*Playback [0-9]* \[\([0-9]*\)%\].*$/\1/p')"
	printf '🔉%3d%%\n' ${vol}
}

main "${@}"