mirror of
https://git.in.rschanz.org/ryan77627/guix-config.git
synced 2025-02-27 17:39:47 -05:00
supressed suspend on laptop lid close or button push, added keybind for
sleep in hyprland config
This commit is contained in:
parent
b16b1b9db9
commit
ed79e4736b
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue