$lock_cmd = pidof hyprlock || hyprlock general { lock_cmd = $lock_cmd before_sleep_cmd = $lock_cmd after_sleep_cmd = hyprctl dispatch dpms on } listener { timeout = 300 on-timeout = loginctl lock-session } listener { timeout = 330 on-timeout = hyprctl dispatch dpms off on-resume = hyprctl dispatch dpms on } listener { timeout = 600 on-timeout = playerctl status -s | grep -qv 'Playing' && systemctl sleep || playerctl status -s | grep -q '.*' || systelctl sleep # Only go to sleep if nothing is playing }