You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
742 B

general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances
before_sleep_cmd = loginctl lock-session # lock before suspend
after_sleep_cmd = hyprctl dispatch dpms on # turn on display after resume
}
listener {
timeout = 300 # 5 minutes (300 seconds)
on-timeout = loginctl lock-session # lock screen when timeout
}
listener {
timeout = 330 # 5.5 minutes
on-timeout = hyprctl dispatch dpms off # turn off display 30 seconds after lock
}
listener {
timeout = 1800 # 30 minutes
on-timeout = systemctl suspend # suspend system after 30 minutes
}