mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 12:44:35 +00:00
Update hypridle
This commit is contained in:
parent
118cd7f676
commit
fd5c9ed762
|
@ -12,25 +12,14 @@ general {
|
||||||
listener {
|
listener {
|
||||||
timeout = 300
|
timeout = 300
|
||||||
# use hyprland notifications, in case dunst notifs are paused or whatever
|
# 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..."
|
on-timeout = hyprctl notify 0 10000 "rgb(ff0000)" "fontsize:23 System going idle in 10 seconds..."
|
||||||
# TODO: Add dismissing once https://github.com/hyprwm/Hyprland/pull/4790 is merged
|
on-resume = hyprctl dismissnotify 1
|
||||||
}
|
|
||||||
|
|
||||||
# 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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Lock the session & disable dunst notifications & turn screen back on
|
# Lock the session & disable dunst notifications & turn screen back on
|
||||||
listener {
|
listener {
|
||||||
timeout = 315
|
timeout = 310
|
||||||
on-timeout = hyprctl dispatch dpms on && loginctl lock-session && dunstctl set-paused true
|
on-timeout = loginctl lock-session && dunstctl set-paused true
|
||||||
on-resume = dunstctl set-paused false
|
on-resume = dunstctl set-paused false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue