general { lock_cmd = pgrep -u "$USER" hyprlock || (hyprlock & sleep 0.5 && $HOME/.scripts/theme-changer.sh album sfw) before_sleep_cmd = loginctl lock-session after_sleep_cmd = hyprctl dispatch dpms on } # Dim screen after 4min listener { timeout = 240 on-timeout = brightnessctl -s set 10 on-resume = brightnessctl -r } # Lock after 5min listener { timeout = 300 on-timeout = loginctl lock-session } # Turn of screen after 6min listener { timeout = 360 on-timeout = hyprctl dispatch dpms off on-resume = hyprctl dispatch dpms on }