Skip to content

Give bar panels and notifications the gaps_out of their own edge - #19624

Open
ancientastronauttheorist wants to merge 4 commits into
omacom:quattrofrom
ancientastronauttheorist:gaps-out-edges
Open

ancientastronauttheorist wants to merge 4 commits into
omacom:quattrofrom
ancientastronauttheorist:gaps-out-edges

Conversation

@ancientastronauttheorist

Copy link
Copy Markdown

What changes

Fixes #8339. Style.applyGapsOutJson keeps only the first number of Hyprland's general:gaps_out, so with uneven gaps every bar dropdown and the notification deck use the top gap, whatever edge they sit against. With a bottom bar and gaps_out = { top = 0, bottom = 30 }, dropdowns sit flush on the bar. With a larger right gap, notifications still hug the right edge.

The open question on the issue was which edge each use should follow. This takes the rule Hyprland applies to windows: something placed against an edge uses that edge's gap (halved, as Style.gapsOut already is).

  • Style keeps all four edges in gapsOutEdges, parsed with the existing BorderGeometry.parseWidthSpec, and adds gapsOutAt(edge).
  • Bar dropdowns (KeyboardPanel.gap, PopupCard.margin) use the gap on the bar's edge. A top bar with top = 0 gets dropdowns that sit on it the way its windows do.
  • The notification deck (top-right) uses the top gap for its top margin and the right gap for its right margin. Delivery.deckMargins still accepts a single number.
  • Unchanged: Style.gapsOut is still the top edge. It's used by things placed without regard to one edge (centered cards, the dock menu, KeyboardPanel.margin), and it stays available to third-party plugins. With the default symmetric gaps_out every value is the same as before.

#13138 (floating bar) adds the same gapsOutEdges property, also parsed with parseWidthSpec, and edits the same function and the same line in notifications/Service.qml. Whichever lands second has a small conflict to resolve, with the same property on both sides.

Verification

  • test/shell.d/notifications-test.sh passes with a new case for uneven gaps ({ top: 0, right: 14 } for top, right and bottom bars). It fails against quattro's deckMargins (top with uneven gaps) and passes with this change.
  • ./test/all: the CLI suite passes, and 433 of 434 shell test files pass. The one failure, luks-rekey-journal-test.sh (kill: … No such process, then luks2: after '' setup completes), touches nothing this changes. It passes when run alone, both on this branch and on quattro, so I take it to be a timing flake under a full run on this dual-core machine.
  • On a MacBookPro12,1 (Omarchy 4.5.0-3, Hyprland 0.56.2, 2x scale), I ran the shell from quattro and from this branch one after the other, with gaps set through hyprctl eval, and measured the screenshots pixel by pixel:
    • Bottom bar, gaps_out = { top = 0, right = 10, bottom = 30, left = 10 }, power panel open: quattro puts its border flush on the bar (0 px). This branch leaves 30 physical px = 15 logical px, which is half of bottom.
    • Top bar, gaps_out = { top = 10, right = 40, bottom = 10, left = 10 }, a notify-send: quattro puts the card 10 physical px = 5 logical px from the right edge (half of top). This branch puts it 20 logical px away (half of right).
  • Not checked: left and right bars, and the media/tray PopupCard on screen. Its margin changes the same way, but as the bot noted on the issue, its offset is measured from the anchor widget, not from the bar.

Screenshots

Bottom bar with gaps_out bottom=30: before, the power panel sits flush on the bar; after, it leaves a 15 px gap

Top bar with gaps_out right=40: before, the notification sits 5 px from the right edge; after, 20 px

Filed by Claude Opus 5.5 via Claude Code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gr84VuXNHLdS8Sn11pRKL1

@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues remain.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues remain.

Summary

The PR keeps all four Hyprland outer gaps and uses the matching edge for bar panels and notifications.

  • Bar dropdowns use the gap beside their own bar.
  • Notifications keep separate gaps along the top and right edges.

The previous-review merge bases differ, so the full PR changes were reviewed. No runtime or visual checks were performed during this review.

Reviews (3) · Last reviewed commit: "Describe per-edge gaps_out placement in ..." · Reviewed by Greptile

Comment thread shell/Ui/KeyboardPanel.qml Resolved
@omarchybot

Copy link
Copy Markdown
Collaborator

Codex High read the six-file diff, the linked #8339 report and discussion, the review comments, and the spacing code around the changed callers at 8ce7dbbb55278b09b5dfec11ab42cfb9a54184fc. I classified this as a bug fix, but the configured second classifier, DeepSeek v4p1 Flash, returned no usable classification, so classification remains unsettled. No second code review or worker tests ran, and no labels or code changes were applied. This is waiting on the maintainer to resolve the classification before verification continues.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review labels Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

GPT-6 High in Codex reviewed the parser, panel placement and fitting, notification margins, callers retaining scalar gapsOut, the linked issue and related PRs. On a disposable Omarchy worker, at 8ce7dbbb55278b09b5dfec11ab42cfb9a54184fc, the bottom audio-panel gap changed from 0 to 15 px for gaps_out = { top = 0, right = 10, bottom = 30, left = 10 }. Reverting the changed source files restored the 0 px gap. With a top bar and top = 10, right = 40, the notification's right gap changed from 5 to 20 px. Left/right bar panels and the top = 80, bottom = 0 clamp case also behaved as intended.

The CLI suite passed. The full shell suite had four failures, each reproduced on current quattro: ascii-test.sh, branding-about-animation-test.sh, provision-owner-keyboard-test.sh, and runtime-smoke-test.sh. Six files reported skipped checks. The bar, border geometry, lazy panel runtime, notification, tray and media tests passed. No code changes were pushed.

Opus 5.5 High and muse-wonder via pi at high thinking reviewed the source. Both identified that #8339's exact configuration, a top bar with top = 0 and the other edges 28, still produces a flush audio panel; I confirmed that on the worker. This PR deliberately chooses the bar's own edge rather than the ambient/max gap requested there, so its existing Fixes #8339 link needs the same maintainer decision. Agreement between these reviews is not guaranteed to be independent.

Muse also flagged that PopupCard.qml uses its bar-edge margin for parallel screen-edge clamping and size fitting, whereas KeyboardPanel retains a separate scalar margin. I confirmed those uses in the source. Separating those values or making every clamp follow its own edge changes the layout policy, so I left that choice for the maintainer alongside the main edge policy. The spacing behavior is verified; this is waiting on the maintainer's decision. #13138, #8031 and #14470 overlap files but address different behavior.

Before: on quattro, the bottom audio panel touches the bar with bottom gaps_out 30

After: on this head, the same audio panel leaves a 15 px gap above the bottom bar

Before: on quattro, the notification sits 5 px from the right edge despite right gaps_out 40

After: on this head, the same notification sits 20 px from the right edge

Head clamp check: with top gaps_out 80 and bottom 0, the audio panel correctly touches the bottom bar

Head with the exact issue8339 configuration: top 0 and other edges 28 still leaves the audio panel flush with the top bar

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Nov 24, 2026
Keep the per-edge gaps_out parsing in applyGapsOutOption, which quattro now
shares with the batched option query.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gr84VuXNHLdS8Sn11pRKL1
@omarchybot

Copy link
Copy Markdown
Collaborator

GPT-6 High in Codex read the revised seven-file diff at de8fa186d85279b7b2e03742473041a76d07614c, the review threads, #8339 and its discussion, and the parser and placement consumers. The merge keeps per-edge parsing in applyGapsOutOption, which is also used by the batched option query, and the documentation now describes the chosen per-edge placement policy.

Classification is unsettled on this head: I classified the existing use of the top gap for panels on other edges as a bug fix; the configured second classifier, DeepSeek v4p1 Flash, classified this revision as an enhancement. That disagreement stops verification under the queue workflow and is waiting on the maintainer to resolve. No worker tests, new visual verification or second code review ran on this head, and no labels or code changes were applied.

@omarchybot omarchybot removed the bug Something isn't working label Nov 26, 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.

gapsOut always reads the top gaps_out value, breaks bar-widget dropdown spacing with asymmetric gaps

2 participants