Files
hypr/hypridle.conf
T

35 lines
728 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
ignore_systemd_inhibit = false
}
# Idle
listener {
timeout = 1800
on-timeout = loginctl lock-session
on-resume = notify-send "Welcome back!"
}
# Shutdown
listener {
timeout = 7200
on-timeout = systemctl hibernate
on-resume = loginctl lock-session && notify-send "Welcome back!"
}
# Brightness
listener {
timeout = 900
on-timeout = brightnessctl -s set 10000
on-resume = brightnessctl -r
}
listener {
timeout = 3600
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}