diff --git a/modules/programs/waybar.nix b/modules/programs/waybar.nix index efc34a30..9925effc 100644 --- a/modules/programs/waybar.nix +++ b/modules/programs/waybar.nix @@ -309,7 +309,7 @@ in { "Highly customizable Wayland bar for Sway and Wlroots based compositors."; Documentation = "https://github.com/Alexays/Waybar/wiki"; PartOf = [ "graphical-session.target" ]; - After = [ "graphical-session.target" ]; + After = [ "graphical-session-pre.target" ]; }; Service = { diff --git a/tests/modules/programs/waybar/systemd-with-graphical-session-target.service b/tests/modules/programs/waybar/systemd-with-graphical-session-target.service index e1343da8..c99c8c13 100644 --- a/tests/modules/programs/waybar/systemd-with-graphical-session-target.service +++ b/tests/modules/programs/waybar/systemd-with-graphical-session-target.service @@ -8,7 +8,7 @@ KillMode=mixed Restart=on-failure [Unit] -After=graphical-session.target +After=graphical-session-pre.target Description=Highly customizable Wayland bar for Sway and Wlroots based compositors. Documentation=https://github.com/Alexays/Waybar/wiki PartOf=graphical-session.target