Fix issues with not correctly printing the program to toggle volume.

This commit is contained in:
CronyAkatsuki 2022-10-11 16:19:14 +02:00
parent 521d5c095c
commit 80b8fcc5c5

View File

@ -21,7 +21,7 @@ programVolToggle () {
[ -z "$inputSinks" ] && quick-notify "Program Master" "No Programs Inputing Sound" && exit [ -z "$inputSinks" ] && quick-notify "Program Master" "No Programs Inputing Sound" && exit
programSink=$(printf '%s' $inputSinks | dmenu -l 5 -p "Toggle volume: " | awk '{ print $2 }' | sed 's/#//') programSink=$(printf '%s\n' "$inputSinks" | dmenu -p "Toggle volume: " | awk '{ print $2 }' | sed 's/#//')
pactl set-sink-input-mute $programSink toggle pactl set-sink-input-mute $programSink toggle
} }