mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Configure lid-switch on host instead of user level
This commit is contained in:
parent
86d31cc3c6
commit
479949068a
2 changed files with 5 additions and 2 deletions
|
|
@ -26,11 +26,15 @@
|
|||
services = {
|
||||
fwupd.enable = true;
|
||||
fprintd.enable = true;
|
||||
logind.lidSwitch = "ignore";
|
||||
upower = {
|
||||
enable = true;
|
||||
criticalPowerAction = "Hibernate";
|
||||
};
|
||||
|
||||
logind = {
|
||||
powerKey = "suspend-then-hibernate";
|
||||
lidSwitch = "suspend-then-hibernate";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.sleep.extraConfig = ''
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@
|
|||
bindrl = SUPER CONTROL, R, exec, reboot
|
||||
bindrl = SUPER CONTROL, H, exec, systemctl hibernate
|
||||
bindrl = SUPER CONTROL, S, exec, systemctl sleep
|
||||
bindl = , switch:on:Lid Switch, exec, systemctl sleep
|
||||
bindrl = SUPER CONTROL, L, exec, loginctl lock-session
|
||||
bindrl = SUPER CONTROL, B, exec, sleep 1 && hyprctl dispatch dpms off
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue