supressed suspend on laptop lid close or button push, added keybind for

sleep in hyprland config
This commit is contained in:
Ryan Schanzenbacher 2024-02-04 18:15:29 -05:00
parent b16b1b9db9
commit ed79e4736b
Signed by: ryan77627
GPG key ID: 81B0E222A3E2308E
2 changed files with 7 additions and 0 deletions

View file

@ -189,6 +189,7 @@ bindm = $mainMod, mouse:273, resizewindow
# Bind mainMod + L to screenlocker # Bind mainMod + L to screenlocker
bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 0.3 --effect-blur 7x5 --effect-greyscale bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 0.3 --effect-blur 7x5 --effect-greyscale
bind = $mainMod SHIFT, L, exec, swaylock --screenshots --clock --indicator --effect-blur 7x5 --effect-greyscale & sleep 0.5; loginctl suspend
# Keybind for screenshot # Keybind for screenshot
bind = $mainMod SHIFT, S, exec, grimblast copy area bind = $mainMod SHIFT, S, exec, grimblast copy area

View file

@ -201,6 +201,12 @@
(inherit config) (inherit config)
(rules (cons %backlight-udev-rule (rules (cons %backlight-udev-rule
(udev-configuration-rules config))))) (udev-configuration-rules config)))))
(elogind-service-type config =>
(elogind-configuration
(inherit config)
(handle-power-key `ignore)
(handle-suspend-key `ignore)
(handle-lid-switch `ignore)))
(delete pulseaudio-service-type) (delete pulseaudio-service-type)
(delete gdm-service-type) (delete gdm-service-type)
(delete avahi-service-type) (delete avahi-service-type)