feat: make suspend-then-hibernate the suspend default
This commit is contained in:
parent
bda284daa9
commit
c8daf04ee4
3 changed files with 3 additions and 4 deletions
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"; }
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue