diff options
Diffstat (limited to 'hm/env/niri')
| -rw-r--r-- | hm/env/niri/binds.nix | 11 | ||||
| -rw-r--r-- | hm/env/niri/niri.nix | 2 |
2 files changed, 10 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; diff --git a/hm/env/niri/niri.nix b/hm/env/niri/niri.nix index 02e7472..fbbb5f2 100644 --- a/hm/env/niri/niri.nix +++ b/hm/env/niri/niri.nix @@ -17,6 +17,7 @@ in debug.disable-cursor-plane = []; binds = import ./binds.nix { inherit config lib pkgs; }; + # animations.enable = false; prefer-no-csd = true; hotkey-overlay.skip-at-startup = true; input = { @@ -90,6 +91,7 @@ in }; home.packages = with pkgs; [ qalculate-gtk + gavin-bc ]; }; } |
