From e3855901bf9ea792905a776523f0d72433a6e3c1 Mon Sep 17 00:00:00 2001 From: Nataniel Farzan Date: Mon, 19 Jun 2023 18:31:14 -0700 Subject: [PATCH] Add keybinding for toggling audio mute with wpctl --- Home.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 076bf4e..15391a8 100644 --- a/Home.md +++ b/Home.md @@ -767,9 +767,10 @@ bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle ``` -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 XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2 ```