hosts/tablet: add special power key events handling
This commit is contained in:
parent
4d4a007a00
commit
2670ad97e8
1 changed files with 10 additions and 0 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue