adjust service files

This commit is contained in:
Markus Volk
2024-11-04 12:24:41 +01:00
parent fe9c4b6c7b
commit 2629661a5d
2 changed files with 16 additions and 14 deletions

View File

@ -1,14 +1,15 @@
[Unit]
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
PartOf=graphical-session.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
[Service]
Type=simple
ExecStartPre=systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
ExecStart=waybar
Slice=session.slice
TimeoutStopSec=5sec
Restart=on-failure
[Install]
WantedBy=graphical-session.target