mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-20 17:15:41 +02:00
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.
This commit is contained in:
parent
03b2b00bb5
commit
cb8d3e939d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}' \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue