32 lines
597 B
Plaintext
32 lines
597 B
Plaintext
general {
|
|
lock_cmd = pidof hyprlock || hyprlock
|
|
before_sleep_cmd = loginctl lock-session
|
|
after_sleep_cmd = hyprctl dispatch dpms on
|
|
}
|
|
|
|
# Dim after 2.5 minutes
|
|
listener {
|
|
timeout = 150
|
|
on-timeout = brightnessctl set 10%
|
|
on-resume = brightnessctl set 100%
|
|
}
|
|
|
|
# Lock after 5 minutes
|
|
listener {
|
|
timeout = 300
|
|
on-timeout = loginctl lock-session
|
|
}
|
|
|
|
# Turn off the screen after 6 minutes
|
|
listener {
|
|
timeout = 360
|
|
on-timeout = hyprctl dispatch dpms off
|
|
on-resume = hyprctl dispatch dpms on
|
|
}
|
|
|
|
# Suspend after 20 minutes
|
|
listener {
|
|
timeout = 1200
|
|
on-timeout = systemctl suspend
|
|
}
|