From c1c22410525f07f011ef3b1ee7d9cf2fdaee4ca6 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 7 Jan 2024 10:47:25 +0700 Subject: [PATCH] fix lock for laptop lid close --- .config/hypr/execs.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/hypr/execs.conf b/.config/hypr/execs.conf index c97a5319..3c4204b0 100644 --- a/.config/hypr/execs.conf +++ b/.config/hypr/execs.conf @@ -14,7 +14,7 @@ exec-once = fcitx5 exec-once = dbus-update-activation-environment --all & exec-once = /usr/bin/gnome-keyring-daemon --start --components=secrets & exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & -exec-once = swayidle -w timeout 300 'swaylock -f' & +exec-once = swayidle -w timeout 300 'swaylock -f' before-sleep 'swaylock -f' & exec-once = swayidle -w timeout 450 'pidof java || systemctl suspend' & exec-once = sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # Some fix idk