From b37f702907941cd65d0f80e17a2e7f54d682aac6 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 10 Jul 2024 15:27:45 +0700 Subject: [PATCH] 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. --- modules/services/hypridle.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/hypridle.nix b/modules/services/hypridle.nix index 0e28c5438..aef05f6da 100644 --- a/modules/services/hypridle.nix +++ b/modules/services/hypridle.nix @@ -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}" ];