31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
general {
|
|
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
|
after_sleep_cmd = niri msg action power-on-monitors
|
|
# to avoid having to press a key twice to turn on the display.
|
|
}
|
|
|
|
listener {
|
|
timeout = 150 # 2.5min.
|
|
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
|
on-resume = brightnessctl -r # monitor backlight restore.
|
|
}
|
|
|
|
|
|
listener {
|
|
timeout = 900 # 15min
|
|
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
|
}
|
|
|
|
listener {
|
|
timeout = 930 # 15.5min
|
|
on-timeout = niri msg action power-off-monitors
|
|
# screen off when timeout has passed
|
|
on-resume = niri msg action power-on-monitors
|
|
}
|
|
|
|
listener {
|
|
timeout = 3600 # 30min
|
|
on-timeout = systemctl suspend # suspend pc
|
|
}
|