niri: fix sleep

This commit is contained in:
2026-05-06 13:09:36 -04:00
parent b21f9799a5
commit f1e4f8480e

View File

@@ -103,7 +103,11 @@ in
# https://github.com/sodiboo/niri-flake/issues/591
switch-events = with config.lib.niri.actions; {
"lid-close".action = spawn (lib.getExe pkgs.swaylock);
"lid-close".action = spawn [
"sh"
"-c"
"${lib.getExe pkgs.swaylock} -f && systemctl suspend"
];
};
binds = with config.lib.niri.actions; {