I suggest to use the default config to test if that works, and then change bit by bit to your desired configuration. I have a community just for this kind of questions by the way … Window Managers
I do not use hyprland anymore but this was my working config:
general {
lock_cmd = pidof hyprlock || hyprlock -c ~/.config/hypr/hyprlock/hl-sw06.conf
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on
}
listener {
timeout = 270 #270
on-timeout = brightnessctl -s set 4000
on-resume = brightnessctl -r
}
listener {
timeout = 300 #300
on-timeout = loginctl lock-session
}
listener {
timeout = 330 #330
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
listener {
timeout = 600
on-timeout = systemctl suspend
}
I would fuck my self