The default screen timeout in Hyde is too fast in my opinion, so I prefer making it longer.
The settings for modifying screen idle timeout are in ~/.config/hypr/hypridle.conf.
This is how my config looks:
$LOCKSCREEN = lockscreen.sh # Calls $LOCKSCREEN set from hyprland
general {
lock_cmd = $LOCKSCREEN
unlock_cmd = #notify-send "unlock!"
before_sleep_cmd = $LOCKSCREEN
after_sleep_cmd = # notify-send "Awake!"
ignore_dbus_inhibit = false
}
# Dims the display
listener {
timeout = 300
on-timeout = { brightnessctl -s && brightnessctl s 1% ;}
on-resume = brightnessctl -r
}
# Lock it before DPMS off so screen doesn't flash after wake
listener {
timeout = 600
on-timeout = $LOCKSCREEN
}
# DPMS off
listener {
timeout = 1200
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
# Suspend (disabled)
# listener {
# timeout = 500
# on-timeout = systemctl suspend
# }
# Source custom listeners
source = ~/.config/hypridle/*
The
timeoutvalues are in seconds.
You can tweak the timeouts as per your preference, or disable a listener entirely by commenting it out.