general { lock_cmd = pidof hyprlock || hyprlock --grace 10 # lock screen # before_sleep_cmd = loginctl lock-session # lock before suspend. # after_sleep_cmd = sleep 1 && hyprctl dispatch dpms on # delay for PAM readiness, then turn on display. inhibit_sleep = 3 # wait until screen is locked } listener { timeout = 300 # 5 minutes on-timeout = notify-send "You are idle and will be locked soon!" # command to run when timeout has passed. on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired. } # listener { # timeout = 20 # 6 minutes # on-timeout = loginctl lock-session # lock screen when timeout has passed # } listener { timeout = 330 # 5.5min on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' # screen off when timeout has passed on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' && brightnessctl -r # screen on when activity is detected after timeout has fired. } listener { timeout = 600 # 1min on-timeout = systemctl suspend # suspend pc }