From 79b1a5eb995c3933e9d4f27f278a5d10a663e447 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 10 Nov 2021 02:49:08 +0100 Subject: [PATCH] systemd(user): start waybar as part of sway * runs waybar as a systemd user service on sway start-up * follow-up of ef2e74ed8d --- .../user/.#waybar.service15c133f9ac3a0f00 | 16 ++++++++++++++++ .../sway-session.target.wants/waybar.service | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .config/systemd/user/.#waybar.service15c133f9ac3a0f00 diff --git a/.config/systemd/user/.#waybar.service15c133f9ac3a0f00 b/.config/systemd/user/.#waybar.service15c133f9ac3a0f00 new file mode 100644 index 0000000..42b9d96 --- /dev/null +++ b/.config/systemd/user/.#waybar.service15c133f9ac3a0f00 @@ -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 \ No newline at end of file diff --git a/.config/systemd/user/sway-session.target.wants/waybar.service b/.config/systemd/user/sway-session.target.wants/waybar.service index cc55342..defcecf 120000 --- a/.config/systemd/user/sway-session.target.wants/waybar.service +++ b/.config/systemd/user/sway-session.target.wants/waybar.service @@ -1 +1 @@ -/home/vis/.config/systemd/user/waybar.service \ No newline at end of file +../waybar.service \ No newline at end of file