dots/hypr/hypridle.conf
2025-04-20 13:02:58 +02:00

31 lines
563 B
Plaintext

$lock_cmd = pidof hyprlock || hyprlock
$suspend_cmd = pidof steam || systemctl suspend || loginctl suspend
general {
lock_cmd = $lock_cmd
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on
}
listener {
timeout = 180
on-timeout = loginctl lock-session
}
listener {
timeout = 240
on-timeout = light -U 30
on-resume = light -A 30
}
listener {
timeout = 320
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
listener {
timeout = 540
on-timeout = $suspend_cmd
}