From d57b5464848d73fba2e322854237bd191e46275b Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sun, 9 Nov 2025 21:57:06 +0100 Subject: [PATCH] now locking and suspending when the lid is closed --- sources/niri/config.kdl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/niri/config.kdl b/sources/niri/config.kdl index 9adda5b..f05f434 100644 --- a/sources/niri/config.kdl +++ b/sources/niri/config.kdl @@ -261,6 +261,12 @@ layout { } } +switch-events { + lid-close { + spawn "qs" "-c" "noctalia-shell" "ipc" "call" "sessionMenu" "lockAndSuspend" + } +} + // Add lines like this to spawn processes at startup. // Note that running niri as a session supports xdg-desktop-autostart, // which may be more convenient to use.