# vim: set filetype=hyprlang.ansible : general { lock_cmd = pidof hyprlock || hyprlock before_sleep_cmd = /etc/hypr/scripts/power.sh --lock after_sleep_cmd = hyprctl dispatch dpms on } # Lock the screen (after 5 minutes) listener { timeout = 300 on-timeout = /etc/hypr/scripts/power.sh --lock } # Turn off screen (after 10 minutes) listener { timeout = 600 on-timeout = hyprctl dispatch dpms off on-resume = hyprctl dispatch dpms on } # Suspend the system (after 15 minutes) listener { timeout = 900 on-timeout = /etc/hypr/scripts/power.sh --hibernate }