34 lines
973 B
Plaintext
34 lines
973 B
Plaintext
general {
|
|
lock_cmd = pidof hyprlock || hyprlock # 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 = 60
|
|
on-timeout = pidof hyprlock && hyprctl dispatch dpms off
|
|
on-resume = pidof hyprlock && hyprctl dispatch dpms on
|
|
}
|
|
|
|
# Warn
|
|
listener {
|
|
timeout = 540
|
|
on-timeout = notify-send "You are idle!"
|
|
on-resume = notify-send "Welcome back!"
|
|
}
|
|
|
|
# Screenlock
|
|
listener {
|
|
timeout = 600
|
|
on-timeout = loginctl lock-session
|
|
}
|
|
|
|
|
|
# Turn off screen
|
|
# # (disabled by default)
|
|
# listener {
|
|
# timeout = 630 # 10.5 min
|
|
# on-timeout = hyprctl dispatch dpms off # command to run when timeout has passed
|
|
# on-resume = hyprctl dispatch dpms on # command to run when activity is detected after timeout has fired.
|
|
# }
|