waybar: integrate with tray.target (#6675)

Inspired by [#3432][0], but with a smaller footprint.

This change makes it so that services with `Requires=tray.target`
and `After=tray.target`, such as [`blueman-applet`][1] or
[`network-manager-applet`][2] get started *after* waybar is ready.

[0]: https://github.com/nix-community/home-manager/pull/3432
[1]: 6c2b79403e/modules/services/blueman-applet.nix
[2]: 6c2b79403e/modules/services/network-manager-applet.nix
This commit is contained in:
Alex Epelde 2025-03-25 19:48:07 -04:00 committed by GitHub
parent b9da58d505
commit 338b2eabdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,5 @@
[Install]
WantedBy=tray.target
WantedBy=sway-session.target
[Service]
@ -13,3 +14,4 @@ ConditionEnvironment=WAYLAND_DISPLAY
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
Documentation=https://github.com/Alexays/Waybar/wiki
PartOf=sway-session.target
PartOf=tray.target