niri: fix sleep
This commit is contained in:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user