summaryrefslogtreecommitdiff
path: root/niri
diff options
context:
space:
mode:
authorryukamish <[email protected]>2026-03-01 21:24:37 +0530
committerryukamish <[email protected]>2026-03-01 21:24:37 +0530
commit9d6e222e0f7406499bf9cb0d4a8b8c84848b6cca (patch)
tree089a3ab4fe234613183bc4dbec8d9c9a2de7c3cd /niri
parent3a41f3bad55c7d990cc37f4da51e7c31e0e1a949 (diff)
add/chore: lockscreen when laptop lid is closed and changed default terminal and browser with keybind
Diffstat (limited to 'niri')
-rw-r--r--niri/cfg/keybinds.kdl4
-rw-r--r--niri/cfg/misc.kdl7
2 files changed, 9 insertions, 2 deletions
diff --git a/niri/cfg/keybinds.kdl b/niri/cfg/keybinds.kdl
index 112729a..280057f 100644
--- 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
index e48ee8b..c96b17a 100644
--- 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"
+ }
+}