20 lines
703 B
Plaintext
20 lines
703 B
Plaintext
general {
|
|
lock_cmd = pidof hyprlock || hyprlock
|
|
before_sleep_cmd = loginctl lock-session
|
|
# fprintd restart ensures fingerprint sensor is ready after resume
|
|
after_sleep_cmd = systemctl restart fprintd.service ; hyprctl dispatch dpms on
|
|
ignore_dbus_inhibit = false # respect systemd-inhibit locks (presence-detect, caffeine)
|
|
}
|
|
|
|
# Presence detection resets the idle timer every 2 minutes while you're visible,
|
|
# so these timeouts only run when you've actually stepped away.
|
|
listener {
|
|
timeout = 180 # 3 min — lock screen
|
|
on-timeout = loginctl lock-session
|
|
}
|
|
|
|
listener {
|
|
timeout = 600 # 10 min — suspend
|
|
on-timeout = systemctl suspend-then-hibernate
|
|
}
|