diff options
Diffstat (limited to 'niri/cfg/misc.kdl')
| -rw-r--r-- | niri/cfg/misc.kdl | 7 |
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" + } +} |
