nix-conf/config/hypr/hypridle.conf

23 lines
424 B
Text

$lock_cmd = pidof hyprlock || hyprlock
$suspend_cmd = systemctl suspend || loginctl suspend
general {
lock_cmd = $lock_cmd
before_sleep_cmd = $lock_cmd
}
listener {
timeout = 180 # 3mins
on-timeout = $lock_cmd
}
listener {
timeout = 240 # 4mins
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
listener {
timeout = 540 # 9mins
on-timeout = $suspend_cmd
}