From ed79e4736bdf3dbe65d4122b281b06d8d8151fd5 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Sun, 4 Feb 2024 18:15:29 -0500 Subject: [PATCH] supressed suspend on laptop lid close or button push, added keybind for sleep in hyprland config --- home-config/hypr/hyprland.conf | 1 + modules/ryan-config/base-system.scm | 6 ++++++ 2 files changed, 7 insertions(+) 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 # Bind mainMod + L to screenlocker 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 bind = $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 @@ (inherit config) (rules (cons %backlight-udev-rule (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 gdm-service-type) (delete avahi-service-type)