feat: make suspend-then-hibernate the suspend default

This commit is contained in:
etwas 2025-12-08 13:58:20 +01:00
parent bda284daa9
commit c8daf04ee4
3 changed files with 3 additions and 4 deletions

View file

@ -122,7 +122,7 @@ spawn-at-startup "firefox"
switch-events { switch-events {
lid-close { lid-close {
spawn "systemctl hybrid-sleep"; spawn "systemctl suspend-then-hibernate";
} }
} }

View file

@ -9,8 +9,7 @@
]; ];
timeouts = [ timeouts = [
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; } command = "${pkgs.systemd}/bin/systemctl suspend-then-hibernate";
{ timeout = 301; command = "${pkgs.niri}/bin/niri msg action power-off-monitors && ${pkgs.systemd}/bin/systemctl hibernate"; }
]; ];
}; };
} }

View file

@ -1,6 +1,6 @@
{ {
services.logind.settings.Login = { services.logind.settings.Login = {
HandlePowerKey = "suspend"; HandlePowerKey = "suspend-then-hibernate";
}; };
services.power-profiles-daemon = { services.power-profiles-daemon = {