Fix issues with not correctly printing the program to toggle volume.
This commit is contained in:
parent
521d5c095c
commit
80b8fcc5c5
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user