wrap up suspend-then-hibernate
This commit is contained in:
@@ -43,13 +43,12 @@
|
||||
|
||||
# fix power buttons
|
||||
services.logind.settings.Login = {
|
||||
#HandlePowerKey = "suspend";
|
||||
#HandleLidSwitch = "suspend";
|
||||
HandlePowerKey = "suspend-then-hibernate";
|
||||
HandleLidSwitch = "suspend-then-hibernate";
|
||||
};
|
||||
# sets the delay before hibernation for ^
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=180
|
||||
HibernateDelaySec=1800
|
||||
'';
|
||||
|
||||
# boot (systemd is growing on me)
|
||||
|
||||
@@ -353,7 +353,7 @@ in {
|
||||
# --- suspend timeout ---
|
||||
{
|
||||
timeout = 1800; # 30 min
|
||||
on-timeout = "systemctl suspend"; # suspend computer
|
||||
on-timeout = "systemctl suspend-then-hibernate"; # suspend computer
|
||||
}
|
||||
|
||||
# --- keyboard backlight (optional) ---
|
||||
|
||||
Reference in New Issue
Block a user