hosts/tablet: add special power key events handling

This commit is contained in:
Wroclaw 2024-05-27 03:24:34 +02:00
parent 4d4a007a00
commit 2670ad97e8

View file

@ -34,6 +34,16 @@
rec { from = 1714; to = from + 50; } rec { from = 1714; to = from + 50; }
]; ];
services.logind.extraConfig = ''
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
HandleSuspendKey=suspend-then-hibernate
HandleSuspendKeyLongPress=hibernate
HandleLidSwitch=lock
HandleLidSwitchDocked=ignore
HandleLidSwitchExternalPower=lock
'';
system.stateVersion = "23.11"; system.stateVersion = "23.11";
}; };
} }