dotfiles/home/.config/hypr/hypridle.conf

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-02-19 00:01:07 +00:00
general {
unlock-cmd = killall -s SIGUSR1 hyprlock && dunstctl set-paused false
before_sleep_cmd = loginctl lock-session && dunstctl set-paused true && sleep 2
2024-02-19 00:01:07 +00:00
ignore_dbus_inhibit = false
ignore_systemd_inhibit = false;
2024-02-19 00:01:07 +00:00
}
# Warn about going idle (5 mins)
listener {
timeout = 300
2024-03-05 10:17:01 +00:00
# use hyprland notifications, in case dunst notifs are paused or whatever
on-timeout = hyprctl notify 0 10000 "rgb(ff0000)" "fontsize:20 System going idle in 10 seconds..."
2024-03-10 03:42:19 +00:00
on-resume = hyprctl dismissnotify 1
2024-03-05 10:17:01 +00:00
}
2024-03-11 01:18:24 +00:00
# Lock the session & disable dunst notifications
2024-03-05 10:17:01 +00:00
listener {
2024-03-10 03:42:19 +00:00
timeout = 310
on-timeout = loginctl lock-session && dunstctl set-paused true
2024-02-19 00:01:07 +00:00
on-resume = dunstctl set-paused false
}
2024-03-11 01:18:24 +00:00
# Turn off the screen after another 50s
2024-02-19 00:01:07 +00:00
listener {
2024-03-05 10:17:01 +00:00
timeout = 400
2024-02-19 00:01:07 +00:00
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
# Enter suspend/sleep state (10 mins)
# On low battery, or after HibernateDelaySec (/etc/systemd/sleep.conf), the system
# will enter full hibernation
listener {
timeout = 600,
on-timeout = systemctl suspend-then-hibernate
}
# vi: ft=hyprlang