From 97867128125e602920e780c1f735e94c4b8ac75d Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 30 Oct 2024 11:31:34 +0100 Subject: [PATCH] waybar: adjust systemd service --- recipes-gtk/waybar/waybar/waybar.service | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/recipes-gtk/waybar/waybar/waybar.service b/recipes-gtk/waybar/waybar/waybar.service index 6e5eae8..829633f 100644 --- a/recipes-gtk/waybar/waybar/waybar.service +++ b/recipes-gtk/waybar/waybar/waybar.service @@ -1,11 +1,14 @@ [Unit] -Description=Highly customizable Wayland bar for Sway and Wlroots based compositors. +Description=Highly customizable Wayland bar Documentation=https://github.com/Alexays/Waybar/wiki/ +BindsTo=graphical-session.target +Before=graphical-session.target +Wants=xdg-desktop-autostart.target +Wants=graphical-session-pre.target +After=graphical-session-pre.target [Service] -ExecStart=/usr/bin/waybar -ExecReload=kill -SIGUSR2 $MAINPID +Type=simple +ExecStartPre=systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP +ExecStart=waybar Restart=on-failure - -[Install] -WantedBy=graphical-session.target