diff --git a/home/desktop/plasma/default.nix b/home/desktop/plasma/default.nix index dda75379..49414fe0 100644 --- a/home/desktop/plasma/default.nix +++ b/home/desktop/plasma/default.nix @@ -201,6 +201,61 @@ }; }; + powerdevil = + let + powerButtonAction = "showLogoutScreen"; + autoSuspend.action = "sleep"; + whenSleepingEnter = "standby"; + whenLaptopLidClosed = "turnOffScreen"; + in + { + AC = { + inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; + autoSuspend = { + inherit (autoSuspend) action; + idleTimeout = 7200; + }; + dimDisplay = { + enable = true; + idleTimeOut = 300; + }; + turnOffDisplay = { + idleTimeout = 1800; + idleTimeoutWhenLocked = 120; + }; + }; + battery = { + inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; + autoSuspend = { + inherit (autoSuspend) action; + idleTimeout = 1800; + }; + dimDisplay = { + enable = true; + idleTimeOut = 120; + }; + turnOffDisplay = { + idleTimeout = 900; + idleTimeoutWhenLocked = 60; + }; + }; + lowBattery = { + inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; + autoSuspend = { + inherit (autoSuspend) action; + idleTimeout = 900; + }; + dimDisplay = { + enable = true; + idleTimeOut = 60; + }; + turnOffDisplay = { + idleTimeout = 300; + idleTimeoutWhenLocked = "immediately"; + }; + }; + }; + configFile = { baloofilerc."Basic Settings"."Indexing-Enabled" = false; kcminputrc.Keyboard.NumLock = 1; @@ -285,6 +340,7 @@ }; Windows = { FocusPolicy = "FocusFollowsMouse"; + DelayFocusInterval = 0; RollOverDesktops = true; }; NightColor = {