1
0
Fork 0

feat(sway): limit max. audio level to 100% through WirePlumber

This commit is contained in:
Oliver Ladner 2025-10-17 13:49:57 +02:00
commit fab5a75b28

View file

@ -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