hypridle: Use After graphical-session.target instead of pre target

Before this, hypridle was running before graphical-session.target was
started so it was missing the WAYLAND_DISPLAY var & could not start
successfully. This PR adds a constraint to make hypridle start after the
compositor, making sure WAYLAND_DISPLAY is available.
This commit is contained in:
Zoe Roux 2024-07-10 15:27:45 +07:00
parent 2fb5c1e0a1
commit b37f702907
No known key found for this signature in database

View file

@ -79,7 +79,7 @@ in {
Unit = {
ConditionEnvironment = "WAYLAND_DISPLAY";
Description = "hypridle";
After = [ "graphical-session-pre.target" ];
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
X-Restart-Triggers =
[ "${config.xdg.configFile."hypr/hypridle.conf".source}" ];