summaryrefslogtreecommitdiff
path: root/niri/cfg/misc.kdl
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/cfg/misc.kdl
parent3a41f3bad55c7d990cc37f4da51e7c31e0e1a949 (diff)
add/chore: lockscreen when laptop lid is closed and changed default terminal and browser with keybind
Diffstat (limited to 'niri/cfg/misc.kdl')
-rw-r--r--niri/cfg/misc.kdl7
1 files changed, 7 insertions, 0 deletions
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"
+ }
+}