From c12c45485332cbee2d535c56b6960c35407437da Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 6 Sep 2020 17:58:42 +0200 Subject: [PATCH] Replace pulseaudio numbers with unique identifiers --- sway/.config/sway/config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sway/.config/sway/config b/sway/.config/sway/config index d12ff1a..c341a45 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -254,10 +254,10 @@ exec swaymsg split vertical # Special keys # # Volume -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% -bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% -bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle -bindsym XF86AudioMicMute exec pactl set-source-mute 1 toggle +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo +5% +bindsym XF86AudioLowerVolume exec pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo -5% +bindsym XF86AudioMute exec pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle +bindsym XF86AudioMicMute exec pactl set-source-mute alsa_input.pci-0000_00_1f.3.analog-stereo toggle # Brightness bindsym XF86MonBrightnessUp exec light -A 10 bindsym XF86MonBrightnessDown exec light -U 10