From 353abd96844947eaca359661dd6000f72165fbc4 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Sun, 22 Sep 2024 09:14:01 -0300 Subject: [PATCH] Ensure power actions are correctly applied in powerdevil module (#368) --- modules/powerdevil.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/powerdevil.nix b/modules/powerdevil.nix index 8aae262f..45d7fb55 100644 --- a/modules/powerdevil.nix +++ b/modules/powerdevil.nix @@ -2,32 +2,34 @@ let cfg = config.programs.plasma; + # Values can be found at: + # https://github.com/KDE/powerdevil/blob/master/daemon/powerdevilenums.h powerButtonActions = { nothing = 0; sleep = 1; hibernate = 2; shutDown = 8; lockScreen = 32; - showLogoutScreen = null; + showLogoutScreen = 16; turnOffScreen = 64; }; autoSuspendActions = { nothing = 0; hibernate = 2; - sleep = null; + sleep = 1; shutDown = 8; }; whenSleepingEnterActions = { - standby = null; + standby = 1; hybridSleep = 2; standbyThenHibernate = 3; }; whenLaptopLidClosedActions = { doNothing = 0; - sleep = null; + sleep = 1; hibernate = 2; shutdown = 8; lockScreen = 32;