From fab5a75b2852ecf1abb8dae62439e30a30e868d8 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Fri, 17 Oct 2025 13:49:57 +0200 Subject: [PATCH] feat(sway): limit max. audio level to 100% through WirePlumber --- home/oli/.config/sway/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/oli/.config/sway/config b/home/oli/.config/sway/config index 30a5a6f..45c7f1f 100644 --- a/home/oli/.config/sway/config +++ b/home/oli/.config/sway/config @@ -199,8 +199,9 @@ bindsym ctrl+alt+shift+r mode "RESIZE" # Get the device ID with `wpctl status` or use @DEFAULT_AUDIO_SINK@ bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # bindsym --release XF86AudioMute exec pkill -USR1 swaybar -bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.01- -bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.01+ +# `-l` sets max volume level +bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02- -l 1.0 +bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+ -l 1.0 # FIXME: https://wiki.archlinux.org/title/MPRIS # bindsym --locked XF86AudioPause exec wpctl set-mute 48 toggle