Files
opalfiles/.config/hypr/hypridle.conf
T

33 lines
711 B
Plaintext

# ~/.config/hypr/hypridle.conf
general {
before_sleep_cmd = hyprlock
after_sleep_cmd = hyprctl dispatch dpms on
}
# Lock after 5 minutes (300 seconds)
listener {
timeout = 300
on-timeout = hyprlock
on-resume = hyprctl dispatch dpms on
}
# Turn off monitors after 10 minutes
listener {
timeout = 600
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
# Suspend system after 30 minutes
listener {
timeout = 1800
on-timeout = hyprlock & disown && systemctl suspend
}
# Optional: notification before locking (requires notify-send)
listener {
timeout = 270
on-timeout = notify-send "Locking soon..." "Screen will lock in 30 seconds."
}