Files
dotfiles/hyprland/.config/hypr/hypridle.conf

33 lines
598 B
Plaintext

# https://wiki.hypr.land/Hypr-Ecosystem/hypridle/
general {
lock_cmd = pidof hyprlock || hyprlock
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on
}
# Screen dim
listener {
timeout = 300
on-timeout = brightnessctl -s set 10
on-resume = brightnessctl -r
}
# Lock Screen
listener {
timeout = 330
on-timeout = loginctl lock-session
}
# Turn off Display(s)
listener {
timeout = 350
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispactch dpms on
}
# Suspend system
listener {
timeout = 1800
on-timeout = systemctl suspend
}