Add keybinding for toggling audio mute with wpctl

Nataniel Farzan 2023-06-19 18:31:14 -07:00
parent fffa366288
commit e3855901bf

@ -770,6 +770,7 @@ bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ to
If you use wireplumber, seting `-l` flag in `wpctl` can be used to prevent the volume from exceeding a certain level, which is not a feature offered by `pactl`. This example ensures that the volume does not surpass 120%: If you use wireplumber, seting `-l` flag in `wpctl` can be used to prevent the volume from exceeding a certain level, which is not a feature offered by `pactl`. This example ensures that the volume does not surpass 120%:
``` ```
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.2 bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.2
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2 bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2
``` ```