# Same as cn-arch: lock at 10 min, screen off at 15 min.

# Brightness dimmer (requires brightnessctl)
listener {
  timeout = 300
  on-timeout = bash -lc "command -v brightnessctl >/dev/null && brightnessctl --save && brightnessctl set 25%"
  on-resume = bash -lc "command -v brightnessctl >/dev/null && brightnessctl --restore"
}


general {
  lock_cmd = hyprlock
  before_sleep_cmd = hyprlock
  after_sleep_cmd = hyprctl dispatch dpms on
}

# Lock after 10 minutes
listener {
  timeout = 600
  on-timeout = hyprlock
}

# DPMS off after 15 minutes (wakes on input)
listener {
  timeout = 900
  on-timeout = hyprctl dispatch dpms off
  on-resume = hyprctl dispatch dpms on
}

