Repository navigation
Conversation
There was a problem hiding this comment.
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-opacitytag.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| 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>
There was a problem hiding this comment.
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
classandtitleare 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 thetitle(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
left a comment
There was a problem hiding this comment.
Verified against the Hermes Desktop source:
- Matchers are exact: the HUD window is created with
title: "Hermes HUD"(HUD_WINDOW_TITLE) under productNameHermes, soclass ^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: falseand 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 0is exactly what a per-pixel-transparent frameless window needs under Hyprland.
Approve from Nous.
|
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 Closing in favour of #7469, which carries the rule. |
Summary
Hermes HUD, leaving the regular Hermes window unchangedContext
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.luabash test/shell.d/hyprland-default-config-test.shhyprctl reloadwith no config errors./test/all(unrelated environment/baseline failures: three packaging checks require a separateomarchy-pkgscheckout;network-qr-test.shalso fails its interface auto-detection case when run in isolation)