power key should not destroy my work :|
This commit is contained in:
@ -11,6 +11,12 @@ in
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Power key should not shut off computer by defaultPower key shuts of
|
||||
services.logind.extraConfig = ''
|
||||
# Suspend when power button is pressed
|
||||
HandlePowerKey=suspend
|
||||
'';
|
||||
|
||||
# Hyprland
|
||||
programs = {
|
||||
hyprland = {
|
||||
|
Reference in New Issue
Block a user