From cb8d3e939df694883cd593a4b4f52de87e1bdc2f Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 16 Apr 2025 07:43:41 +0200 Subject: [PATCH] toggle-mute: unsuspend device before toggling mute Sometimes, muting/unmuting a specific device does not work, while it work with pavucontrol. But with pavucontrol, the device is not suspended. It seems that unsuspending the device from command line does not keep the device unsuspended for too long (or not at all?), so it may not work. --- bin/toggle-mute | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/toggle-mute b/bin/toggle-mute index 6395cb7..66c7b82 100755 --- a/bin/toggle-mute +++ b/bin/toggle-mute @@ -20,6 +20,7 @@ case $1 in for (source in muted) { gsub(/['"'"'"\\\$\(\)`]/, "\\\\&", descriptions[source]) print "echo "(allmuted?"🔊":"🔇")" "descriptions[source] + print "pactl suspend-'$1' "source " false"; print "pactl set-'$1'-mute "source" "(!allmuted); } }' \