1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00
home-manager/tests/modules/programs/waybar/systemd-with-graphical-session-target.service
Alex Epelde 338b2eabdf
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
2025-03-25 18:48:07 -05:00

17 lines
481 B
Desktop File

[Install]
WantedBy=tray.target
WantedBy=sway-session.target
[Service]
ExecReload=/nix/store/00000000000000000000000000000000-coreutils/bin/kill -SIGUSR2 $MAINPID
ExecStart=@waybar@/bin/waybar
KillMode=mixed
Restart=on-failure
[Unit]
After=sway-session.target
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