From 947f01982d3ab249f712cdf32a169a7bb6e613bc Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 22 Jan 2025 12:15:43 +0300 Subject: [PATCH] Sway: Add a sound to mic toggle. --- home/file/sway/module/Sound.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/file/sway/module/Sound.conf b/home/file/sway/module/Sound.conf index 36fc144..ed66d80 100644 --- a/home/file/sway/module/Sound.conf +++ b/home/file/sway/module/Sound.conf @@ -1,7 +1,7 @@ bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +5%' bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -5%' -bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle' -bindsym XF86AudioMicMute exec 'pactl set-source-mute @DEFAULT_SOURCE@ toggle' +bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle' +bindsym XF86AudioMicMute exec 'swayscript notify_short; pactl set-source-mute @DEFAULT_SOURCE@ toggle' bindsym XF86AudioPlay exec 'playerctl play-pause' bindsym XF86AudioPause exec 'playerctl pause'