22 lines
827 B
Plaintext
22 lines
827 B
Plaintext
general {
|
|
lock_cmd = hyprlock > /tmp/pidor.txt # avoid starting multiple hyprlock instances.
|
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
|
}
|
|
|
|
listener {
|
|
timeout = 290 # 5min - 10s (for the screen fade delay).
|
|
on-timeout = touch /tmp/asleepin && /home/greg/.config/hypr/scripts/dimscreen.sh
|
|
on-resume = rm /tmp/asleepin && brightnessctl -r
|
|
}
|
|
|
|
listener {
|
|
timeout = 300 # 5min
|
|
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
|
}
|
|
|
|
listener {
|
|
timeout = 1800 # 30min
|
|
on-timeout = systemctl suspend # suspend pc
|
|
}
|