diff --git a/home/desktop/plasma/default.nix b/home/desktop/plasma/default.nix index 6549bf4d..c1bae4e3 100644 --- a/home/desktop/plasma/default.nix +++ b/home/desktop/plasma/default.nix @@ -204,16 +204,15 @@ powerdevil = let - powerButtonAction = "showLogoutScreen"; - autoSuspend.action = "sleep"; - whenSleepingEnter = "standby"; - whenLaptopLidClosed = "turnOffScreen"; + powerButtonAction = "turnOffScreen"; + whenSleepingEnter = "standbyThenHibernate"; + whenLaptopLidClosed = "sleep"; in { AC = { inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; autoSuspend = { - inherit (autoSuspend) action; + action = "sleep"; idleTimeout = 7200; }; dimDisplay = { @@ -228,30 +227,30 @@ battery = { inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; autoSuspend = { - inherit (autoSuspend) action; - idleTimeout = 1800; + action = "sleep"; + idleTimeout = 900; }; dimDisplay = { enable = true; idleTimeOut = 120; }; turnOffDisplay = { - idleTimeout = 900; + idleTimeout = 300; idleTimeoutWhenLocked = 60; }; }; lowBattery = { inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; autoSuspend = { - inherit (autoSuspend) action; - idleTimeout = 900; + action = "hibernate"; + idleTimeout = 300; }; dimDisplay = { enable = true; idleTimeOut = 60; }; turnOffDisplay = { - idleTimeout = 300; + idleTimeout = 120; idleTimeoutWhenLocked = "immediately"; }; };