nirish

config files for niri window manager
Log | Files | Refs | README | LICENSE

commit 9d6e222e0f7406499bf9cb0d4a8b8c84848b6cca
parent 3a41f3bad55c7d990cc37f4da51e7c31e0e1a949
Author: ryukamish <[email protected]>
Date:   Sun,  1 Mar 2026 21:24:37 +0530

add/chore: lockscreen when laptop lid is closed and changed default terminal and browser with keybind

Diffstat:
Mniri/cfg/keybinds.kdl | 4++--
Mniri/cfg/misc.kdl | 7+++++++
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/niri/cfg/keybinds.kdl b/niri/cfg/keybinds.kdl @@ -1,10 +1,10 @@ binds { Mod+Shift+Slash { show-hotkey-overlay; } - Mod+Return hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; } + Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } // ALT+Space hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } Mod+E hotkey-overlay-title="File manager: nautilus" { spawn "nautilus"; } - Mod+B hotkey-overlay-title="Browser: zen" { spawn "zen-browser"; } + Mod+B hotkey-overlay-title="Browser: zen browser" { spawn "zen-browser"; } // ----------- DMS shell keybinds ------------ // ALT+Space hotkey-overlay-title="Run an Application: DMS launcher" { spawn-sh "dms ipc call launcher toggle"; } diff --git a/niri/cfg/misc.kdl b/niri/cfg/misc.kdl @@ -22,3 +22,10 @@ cursor { hide-when-typing hide-after-inactive-ms 1000 } + +// Lock the screen when laptop lid is closed +switch-events { + lid-close { + spawn "qs" "-c" "noctalia-shell" "ipc" "call" "lockScreen" "lock" + } +}