diff options
Diffstat (limited to 'hm/env/niri/binds.nix')
| -rw-r--r-- | hm/env/niri/binds.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hm/env/niri/binds.nix b/hm/env/niri/binds.nix index 45caece..3cfce88 100644 --- a/hm/env/niri/binds.nix +++ b/hm/env/niri/binds.nix @@ -1,5 +1,4 @@ { config, lib, pkgs, ... }: - with config.lib.niri.actions; let playerctl = spawn "${pkgs.playerctl}/bin/playerctl"; @@ -14,7 +13,12 @@ in # Audio XF86AudioRaiseVolume.action = playerctl "volume" "0.02+"; XF86AudioLowerVolume.action = playerctl "volume" "0.02-"; - XF86AudioMute = { + # microphone + XF86AudioMute.action = spawn "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; + # headphones + "Mod+XF86AudioMute".action = spawn "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; + + "Super+Shift+L" = { allow-when-locked = true; action = spawn "sh" "-c" '' wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && \ |
