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.