hypridle: use config.wayland.systemd.target

This commit is contained in:
Thiago Kenji Okada 2024-12-31 10:14:30 +00:00 committed by Robert Helgesson
parent da12f0b143
commit a6db8c8f6c
Failed to generate hash of commit

View file

@ -74,13 +74,13 @@ in {
}; };
systemd.user.services.hypridle = { systemd.user.services.hypridle = {
Install = { WantedBy = [ "graphical-session.target" ]; }; Install = { WantedBy = [ config.wayland.systemd.target ]; };
Unit = { Unit = {
ConditionEnvironment = "WAYLAND_DISPLAY"; ConditionEnvironment = "WAYLAND_DISPLAY";
Description = "hypridle"; Description = "hypridle";
After = [ "graphical-session-pre.target" ]; After = [ config.wayland.systemd.target ];
PartOf = [ "graphical-session.target" ]; PartOf = [ config.wayland.systemd.target ];
X-Restart-Triggers = mkIf (cfg.settings != { }) X-Restart-Triggers = mkIf (cfg.settings != { })
[ "${config.xdg.configFile."hypr/hypridle.conf".source}" ]; [ "${config.xdg.configFile."hypr/hypridle.conf".source}" ];
}; };