Skip to content

Commit

Permalink
Ensure power actions are correctly applied in powerdevil module (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN authored Sep 22, 2024
1 parent 7fb80fe commit 353abd9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/powerdevil.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 353abd9

Please sign in to comment.