From 80b8fcc5c509d8fd1bd36fca0baeeb695c821f15 Mon Sep 17 00:00:00 2001 From: cronyakatsuki Date: Tue, 11 Oct 2022 16:19:14 +0200 Subject: [PATCH] Fix issues with not correctly printing the program to toggle volume. --- dmenu-pulse-port-man | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmenu-pulse-port-man b/dmenu-pulse-port-man index 2cbe037..ee2ca9b 100755 --- a/dmenu-pulse-port-man +++ b/dmenu-pulse-port-man @@ -21,7 +21,7 @@ programVolToggle () { [ -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 }