From fd5c9ed762da1d66455f7deead7954ef75e35a48 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 10 Mar 2024 04:42:19 +0100 Subject: [PATCH] Update hypridle --- home/.config/hypr/hypridle.conf | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/home/.config/hypr/hypridle.conf b/home/.config/hypr/hypridle.conf index e989fa2..0fc1a94 100644 --- a/home/.config/hypr/hypridle.conf +++ b/home/.config/hypr/hypridle.conf @@ -12,25 +12,14 @@ general { listener { timeout = 300 # use hyprland notifications, in case dunst notifs are paused or whatever - on-timeout = hyprctl notify 0 10000 "rgb(ff0000)" "System going idle in 10 seconds..." - # TODO: Add dismissing once https://github.com/hyprwm/Hyprland/pull/4790 is merged -} - -# Turn off the screen for 5 seconds -# I sometimes don't notice the notification, this I always notice -# and can easily dismiss. However the screen will be turned back on -# once locked, only turning it off for longer later, since I like -# seeing my lock screen. Yeah, it's a mess. -listener { - timeout = 310 - on-timeout = hyprctl dispatch dpms off - on-resume = hyprctl dispatch dpms on + on-timeout = hyprctl notify 0 10000 "rgb(ff0000)" "fontsize:23 System going idle in 10 seconds..." + on-resume = hyprctl dismissnotify 1 } # Lock the session & disable dunst notifications & turn screen back on listener { - timeout = 315 - on-timeout = hyprctl dispatch dpms on && loginctl lock-session && dunstctl set-paused true + timeout = 310 + on-timeout = loginctl lock-session && dunstctl set-paused true on-resume = dunstctl set-paused false }