Skip to content

Linux HUD: say why it can't show; the service finds the session's Wayland display (#756) - #758

Merged
thdxr merged 3 commits into
devfrom
hud-display
Nov 1, 2026
Merged

thdxr merged 3 commits into
devfrom
hud-display

Conversation

@thdxr

@thdxr thdxr commented Nov 1, 2026

Copy link
Copy Markdown
Member

for #756 (@itshimelz, hyprland without xwayland)

  • limitation() used to log one warning ("no layer-shell and XWayland is not running") for three different cases. it now says which one: no display at all (no reachable WAYLAND_DISPLAY and no DISPLAY), no layer-shell and no xwayland, or rune failing to open the overlay (with rune's error). the settings text matches, and the no-display case shows the hyprland import line.
  • hex service started without any display (systemd on a hyprland that imports nothing) now adopts the user manager's WAYLAND_DISPLAY, else the newest $XDG_RUNTIME_DIR/wayland-* socket you own that accepts a connection. it only does this for hex service, so the cli doesn't change.
  • docs/linux.md documents exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP.

checked on apollo in a headless sway with xwayland disable:

  • service started with no WAYLAND_DISPLAY/DISPLAY: it logs "adopted the session's Wayland display wayland_display=wayland-1", and the hud pill is on screen while recording (grim screenshot).
  • service started with a dead WAYLAND_DISPLAY: it logs "HUD unavailable: Hex has no Wayland or X11 display …".

not run on hyprland itself.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant