hyprland: start waybar via systemd user unit, not exec-once

exec-once raced Wayland session init — waybar tried to connect before
the display was ready and exited silently. Enable HM's
programs.waybar.systemd.enable so the unit waits on
graphical-session.target.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-05-11 12:46:53 +01:00
parent 4940a6f44a
commit 772073454d

View file

@ -97,7 +97,9 @@
"$menu" = "fuzzel";
exec-once = [
"waybar"
# waybar starts via its systemd user service — see programs.waybar
# below — so it waits for graphical-session.target instead of
# racing the Wayland init.
"mako"
"hyprpaper"
"nm-applet --indicator"
@ -273,6 +275,7 @@
programs.waybar = {
enable = true;
systemd.enable = true; # start via graphical-session.target
settings.mainBar = {
layer = "top";