summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2024-02-04 18:15:29 -0500
committerRyan Schanzenbacher <ryan@rschanz.org>2024-02-04 18:15:29 -0500
commited79e4736bdf3dbe65d4122b281b06d8d8151fd5 (patch)
tree6d68d0736a33e107818e90313a44fe6cde64b42b
parentb16b1b9db97107e52aeeb63540bd708b0fad2148 (diff)
supressed suspend on laptop lid close or button push, added keybind for
sleep in hyprland config
-rw-r--r--home-config/hypr/hyprland.conf1
-rw-r--r--modules/ryan-config/base-system.scm6
2 files changed, 7 insertions, 0 deletions
diff --git a/home-config/hypr/hyprland.conf b/home-config/hypr/hyprland.conf
index 98a9eef..0998980 100644
--- a/home-config/hypr/hyprland.conf
+++ b/home-config/hypr/hyprland.conf
@@ -189,6 +189,7 @@ bindm = $mainMod, mouse:273, resizewindow
189 189
190# Bind mainMod + L to screenlocker 190# Bind mainMod + L to screenlocker
191bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 0.3 --effect-blur 7x5 --effect-greyscale 191bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 0.3 --effect-blur 7x5 --effect-greyscale
192bind = $mainMod SHIFT, L, exec, swaylock --screenshots --clock --indicator --effect-blur 7x5 --effect-greyscale & sleep 0.5; loginctl suspend
192 193
193# Keybind for screenshot 194# Keybind for screenshot
194bind = $mainMod SHIFT, S, exec, grimblast copy area 195bind = $mainMod SHIFT, S, exec, grimblast copy area
diff --git a/modules/ryan-config/base-system.scm b/modules/ryan-config/base-system.scm
index ae5c1af..5bb7db9 100644
--- a/modules/ryan-config/base-system.scm
+++ b/modules/ryan-config/base-system.scm
@@ -201,6 +201,12 @@
201 (inherit config) 201 (inherit config)
202 (rules (cons %backlight-udev-rule 202 (rules (cons %backlight-udev-rule
203 (udev-configuration-rules config))))) 203 (udev-configuration-rules config)))))
204 (elogind-service-type config =>
205 (elogind-configuration
206 (inherit config)
207 (handle-power-key `ignore)
208 (handle-suspend-key `ignore)
209 (handle-lid-switch `ignore)))
204 (delete pulseaudio-service-type) 210 (delete pulseaudio-service-type)
205 (delete gdm-service-type) 211 (delete gdm-service-type)
206 (delete avahi-service-type) 212 (delete avahi-service-type)