Add power management config to plasma-manager

Remove delay on mouse hover focus
This commit is contained in:
Evie Litherland-Smith 2024-08-06 16:28:33 +01:00
parent 463ef7e1a3
commit f902d25011

View file

@ -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 = { configFile = {
baloofilerc."Basic Settings"."Indexing-Enabled" = false; baloofilerc."Basic Settings"."Indexing-Enabled" = false;
kcminputrc.Keyboard.NumLock = 1; kcminputrc.Keyboard.NumLock = 1;
@ -285,6 +340,7 @@
}; };
Windows = { Windows = {
FocusPolicy = "FocusFollowsMouse"; FocusPolicy = "FocusFollowsMouse";
DelayFocusInterval = 0;
RollOverDesktops = true; RollOverDesktops = true;
}; };
NightColor = { NightColor = {