1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-28 20:05:02 +01:00
home-manager/tests/modules/programs/waybar/systemd-with-graphical-session-target.service
Thiago Kenji Okada 8587c2ff0e
waybar: use config.wayland.systemd.target
Also add `ConditionEnvironment`.
2025-01-03 17:37:42 +01:00

15 lines
441 B
Desktop File

[Install]
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