33 lines
644 B
Plaintext
33 lines
644 B
Plaintext
general {
|
|
lock_cmd = pidof hyprlock || hyprlock
|
|
before_sleep_cmd = loginctl lock-session
|
|
after_sleep_cmd = hyprctl dispatch dpms on
|
|
ignore_dbus_inhibit = false
|
|
}
|
|
|
|
# Dim / lower brightness before locking
|
|
listener {
|
|
timeout = 150
|
|
on-timeout = brightnessctl -s set 10%
|
|
on-resume = brightnessctl -r
|
|
}
|
|
|
|
# Lock the screen
|
|
listener {
|
|
timeout = 300
|
|
on-timeout = loginctl lock-session
|
|
}
|
|
|
|
# Turn off screen (DPMS)
|
|
listener {
|
|
timeout = 330
|
|
on-timeout = hyprctl dispatch dpms off
|
|
on-resume = hyprctl dispatch dpms on
|
|
}
|
|
|
|
# Suspend the system
|
|
listener {
|
|
timeout = 1800
|
|
on-timeout = systemctl suspend
|
|
}
|