nix-conf/config/hypr/hypridle.conf

24 lines
424 B
Text
Raw Normal View History

2024-03-24 11:49:00 +00:00
$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
}