# systemd-user drop-in installed by omarchy-moonlight in headless mode. # Ensures Hyprland's HEADLESS-1 output exists before Sunshine starts so the # encoder probe at startup finds a valid surface (otherwise: "Fatal: Unable # to find display or encoder during startup"). The '-' prefix makes failure # non-fatal so Sunshine still starts if Hyprland isn't reachable. [Service] # Idempotent: only creates a headless output if none exists yet, and rewrites # sunshine.conf's output_name to match the actual name (Hyprland increments # HEADLESS-N on every plain 'output create headless' and ignores the optional # name argument in some versions). ExecStartPre=-%h/.local/share/omarchy-moonlight/bin/sunshine-prestart.sh