dwm/vol

7 lines
168 B
Plaintext
Raw Normal View History

2019-05-25 13:54:12 +02:00
print_volume() {
[ "$(pulsemixer --get-mute)" = "1" ] && printf "MUTE" && exit
vol=$(pulsemixer --get-volume | awk '{print $1}')
printf "%s%%\\n" "$vol"
}
print_volume