From 772073454da276ef602414ec1bdb2769d993b905 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 12:46:53 +0100 Subject: [PATCH] hyprland: start waybar via systemd user unit, not exec-once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- settings/hyprland.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index fadff6e..f496fc4 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -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";