{ config, ... }:
{
# include hyprland configs
home.file.".config/hypr/hypridle.conf".text = ''
# general
general {
ignore_dbus_inhibit = false
}
# listeners
# notify inactivity
listener {
timeout = 45
on-timeout = notify-send -t 4000 "Are you there ?"
timeout = 50
on-timeout = notify-send -t 4000 "Are you there ??"
timeout = 55
on-timeout = notify-send -t 4000 "Apperantly not, lock engaged ! "
# lock screen
timeout = 60
on-timeout = killall hyprlock && hyprlock
# suspend after 5 minutes
timeout = 500
on-timeout = systemctl suspend
'';