dwm/vol

7 lines
168 B
Plaintext
Raw Normal View History

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