Skip to content

Add Hermes HUD window rules - #7094

Closed
vandaimer wants to merge 2 commits into
omacom:quattrofrom
vandaimer:add-hermes-hud-rules
Closed

vandaimer wants to merge 2 commits into
omacom:quattrofrom
vandaimer:add-hermes-hud-rules

Conversation

@vandaimer

Copy link
Copy Markdown
Contributor

Summary

  • add a dedicated Hyprland rule for the Hermes Desktop HUD
  • keep the HUD floating and remove the compositor border
  • bypass Omarchy's default window opacity so Hermes' own per-pixel transparency remains intact
  • match only Hermes HUD, leaving the regular Hermes window unchanged

Context

Hermes renders its HUD as a transparent, frameless Electron window. Without a dedicated rule, compositor decoration and Omarchy's default opacity can produce an outlined, muddy transparent canvas around the compact prompt.

Current Hermes releases can also restore stale or malformed persisted HUD bounds. That geometry belongs to the application and cannot be repaired safely with an Omarchy size rule: Hermes creates the HUD as non-resizable and is responsible for display-aware placement and persistence.

NousResearch/hermes-agent#87109 adds a visible Reset layout action, temporarily enables resizing during reset, restores a display-aware 620x320 default, and persists the repaired bounds. This Omarchy rule intentionally avoids forcing a size or position, so it remains compatible when that fix lands.

This complements #6644, which adds broader optional Hermes integration but currently has no HUD-specific window rule.

Testing

  • luac -p default/hypr/apps/hermes.lua
  • bash test/shell.d/hyprland-default-config-test.sh
  • hyprctl reload with no config errors
  • visually verified on Hyprland: floating 620x320 HUD, native transparency, and no compositor border
  • ./test/all (unrelated environment/baseline failures: three packaging checks require a separate omarchy-pkgs checkout; network-qr-test.sh also fails its interface auto-detection case when run in isolation)

Copilot AI balanced review requested due to automatic review settings August 16, 2026 10:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a Hypr window rule for the Hermes Desktop HUD so it floats, has no border, and opts out of default opacity handling.

Changes:

  • Introduces a new app rule targeting the Hermes HUD window by class/title.
  • Forces floating behavior with zero border.
  • Sets explicit opacity and applies a -default-opacity tag.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread default/hypr/apps/hermes.lua Resolved
tag = "-default-opacity",
float = true,
border_size = 0,
opacity = "1 1",
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 16, 2026 10:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

default/hypr/apps/hermes.lua:7

  • The exact-match regexes for class and title are very strict and may break if the HUD title changes slightly (e.g., version/build suffix, localization, or additional state text). If the intention is to match the HUD reliably, consider loosening the title (e.g., prefix match) or matching on a more stable identifier (like class alone) and documenting why both anchors are required.
o.window({ class = "^Hermes$", title = "^Hermes HUD$" }, {
  tag = "-default-opacity",
  float = true,
  border_size = 0,
  opacity = "1 1",
})

@teknium1 teknium1 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified against the Hermes Desktop source:

  • Matchers are exact: the HUD window is created with title: "Hermes HUD" (HUD_WINDOW_TITLE) under productName Hermes, so class ^Hermes$ title ^Hermes HUD$ catches only the HUD and leaves the main chat window alone.
  • Deliberately not forcing size/position is correct. The HUD is created resizable: false and resizes only through its own IPC path (which flips resizable on for the call) — a compositor size rule would fight it. This rule stays compatible with our pending layout-reset fix (NousResearch/hermes-agent#87109).
  • -default-opacity + opacity 1 1 + border_size 0 is exactly what a per-pixel-transparent frameless window needs under Hyprland.

Approve from Nous.

@omarchybot

Copy link
Copy Markdown
Collaborator

Taken into #7469 as 7fec55e, with you credited as co-author — thank you.

I verified the class anchor against the real app: Hermes Desktop's main window is class=Hermes, title=Hermes, so ^Hermes$ is right and the title scoping correctly leaves that window alone. I could not confirm the ^Hermes HUD$ title, because the HUD only appears past the app's first-run setup choice, which needs a real click. If the HUD still comes up outlined after the next release, that title is the line to check.

Closing in favour of #7469, which carries the rule.

@omarchybot omarchybot closed this Aug 30, 2026
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.

4 participants