diff options
| author | adikro <adikro@disroot.org> | 2026-01-06 22:34:59 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-01-06 22:34:59 +0100 |
| commit | 1abd23db1e18266ffe8035daea1aa3153e736428 (patch) | |
| tree | d587898eec255dbed6c9ce1079abe769aac6fdab /hm/env/niri/binds.nix | |
| parent | 96b694b5251957bc6d33760462d28ee4864b0353 (diff) | |
mpv fixed, configured swaylock, and a lot of other stuff
Diffstat (limited to 'hm/env/niri/binds.nix')
| -rw-r--r-- | hm/env/niri/binds.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/hm/env/niri/binds.nix b/hm/env/niri/binds.nix index f2b8540..45caece 100644 --- a/hm/env/niri/binds.nix +++ b/hm/env/niri/binds.nix @@ -14,9 +14,13 @@ in # Audio XF86AudioRaiseVolume.action = playerctl "volume" "0.02+"; XF86AudioLowerVolume.action = playerctl "volume" "0.02-"; - XF86AudioMute.action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; - XF86AudioMicMute.action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; - + XF86AudioMute = { + allow-when-locked = true; + action = spawn "sh" "-c" '' + wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && \ + wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle + ''; + }; # Media keys XF86AudioPlay.action = playerctl "play-pause"; XF86AudioPrev.action = playerctl "previous"; @@ -61,6 +65,7 @@ in "Mod+C".action = spawn "qalculate-gtk"; "Mod+BracketLeft".action = consume-or-expel-window-left; "Mod+BracketRight".action = consume-or-expel-window-right; + "Super+L".action = spawn "swaylock"; "Mod+R".action = switch-preset-column-width; "Mod+Shift+R".action = reset-window-height; |
