feat(quickshell): manage bar with systemd

This commit is contained in:
2026-09-25 17:46:39 -04:00
parent 04cf13ae99
commit 3f6473ce17
2 changed files with 19 additions and 3 deletions
@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# Start the Quickshell bar on the current Wayland session. # Start the systemd-managed Quickshell bar on the current Wayland session.
qs -c bar kill 2>/dev/null || true systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE
qs -c bar --daemonize systemctl --user restart quickshell-bar.service
@@ -0,0 +1,16 @@
[Unit]
Description=Quickshell desktop bar
Documentation=https://quickshell.org/
After=graphical-session.target
PartOf=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
[Service]
Type=simple
ExecStart=/usr/bin/qs -c bar --no-duplicate
Restart=on-failure
RestartSec=2
TimeoutStopSec=5
[Install]
WantedBy=graphical-session.target