1
1
Fork 0

hyprland: handle dpms on lid switch when inhibited

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-09-09 17:37:50 -05:00
parent 3ae6c4ed6f
commit 6a753ad0b2
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -64,6 +64,12 @@ in
"CTRL+ALT, Delete, exec, ${loginctl} terminate-session ''" "CTRL+ALT, Delete, exec, ${loginctl} terminate-session ''"
"SUPER, L, exec, ${hyprlock} --immediate & ${sleep} 1 && ${hyprctl} dispatch dpms off" "SUPER, L, exec, ${hyprlock} --immediate & ${sleep} 1 && ${hyprctl} dispatch dpms off"
# Laptop lid switches
# https://wiki.hyprland.org/Configuring/Binds/#switches
#?? hyprctl devices
", switch:on:Lid Switch, dpms, off" # Close
", switch:off:Lid Switch, dpms, on" # Open
### Scripts ### Scripts
"SUPER, Delete, exec, inhibit" "SUPER, Delete, exec, inhibit"
]; ];