⚙️ config(hypr): hypridle added features

monitors turn off at 15 minutes and at 30 the pc is suspended
This commit is contained in:
Sergio Laín 2024-03-24 14:22:33 +01:00
parent 34ebde91f4
commit 94c9c7800f
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -1,8 +1,24 @@
$lock_cmd = pidof hyprlock || hyprlock
$suspend_cmd = systemctl suspend || loginctl suspend
general {
lock_cmd = hyprlock
lock_cmd = $lock_cmd
before_sleep_cmd = $lock_cmd
after_sleep_cmd = hyprctl dispatch dpms on
}
listener {
timeout = 600
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
}