systemd(user): start waybar as part of sway

* runs waybar as a systemd user service on sway start-up
* follow-up of ef2e74ed8d
This commit is contained in:
surtur 2021-11-10 02:49:08 +01:00
parent 87d662cd37
commit 79b1a5eb99
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 17 additions and 1 deletions

@ -0,0 +1,16 @@
# ~/.config/systemd/user/waybar.service or /etc/systemd/user/waybar.service
[Unit]
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
Documentation=https://github.com/Alexays/Waybar/wiki/
#PartOf=graphical-session.target
PartOf=sway-session.target
After=sway-session.target
[Service]
ExecStart=/usr/bin/waybar
# Upstreamed in https://github.com/Alexays/Waybar/pull/1036
ExecReload=kill -SIGUSR2 $MAINPID
Restart=on-failure
[Install]
WantedBy=sway-session.target

@ -1 +1 @@
/home/vis/.config/systemd/user/waybar.service
../waybar.service