dotfiles/.config/hypr/hypridle.conf
Sergio Laín 94c9c7800f
⚙️ config(hypr): hypridle added features
monitors turn off at 15 minutes and at 30 the pc is suspended
2024-03-24 14:22:33 +01:00

24 lines
487 B
Text

$lock_cmd = pidof hyprlock || hyprlock
$suspend_cmd = systemctl suspend || loginctl suspend
general {
lock_cmd = $lock_cmd
before_sleep_cmd = $lock_cmd
after_sleep_cmd = hyprctl dispatch dpms on
}
listener {
timeout = 600 # 10 min
on-timeout = loginctl lock-session
}
listener {
timeout = 900 # 15 min
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
listener {
timeout = 1800 # 30 min
on-timeout = $suspend_cmd
}