References:
Note: Install hyprland as describe in hyprland.
Install
sudo pacman -S --needed hypridle
Create a config file with
nano ~/.config/hypr/hypridle.conf
Add
listener {
timeout = 600
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
Edit
~/.config/hypr/hyprland.conf
Add
exec-once = hypridle