Skip to content

Make notifications follow the bar position - #16965

Open
xvvhang wants to merge 1 commit into
omacom:quattrofrom
xvvhang:fix/notifications-follow-bar
Open

xvvhang wants to merge 1 commit into
omacom:quattrofrom
xvvhang:fix/notifications-follow-bar

Conversation

@xvvhang

@xvvhang xvvhang commented Oct 29, 2026

Copy link
Copy Markdown

Summary

Make notification placement follow the bar automatically, without adding configuration or preferences UI:

Bar Notification corner Stack direction
Top Top-right Down
Bottom Bottom-right Up
Right Bottom-right Up
Left Bottom-left Up

Keep the existing layout and shared animation clock in inward-from-edge coordinates, mirroring the drawing for bottom decks. This also reverses arrival/departure movement without changing animation timings or snapshot interpolation.

Update bar clearance, scale origin, pointer hit testing, directional keyboard navigation, and keyboard reachability. Tab/Shift+Tab retain their existing newest-first traversal order. Update the notification documentation.

Related to #16424. This is a deliberately smaller alternative based on the current quattro notification implementation: automatic bar-following only, with no nine-position override, settings UI, or new translation strings.

Verification

  • bash test/shell.d/notifications-test.sh — passed. Covers margins, bottom-coordinate mapping, directional keys, and bottom-bar reachability alongside existing notification policies.
  • bash test/shell.d/motion-test.sh — passed.
  • git diff --check — passed.
  • Ran the branch's shell in a live Hyprland session at all four bar positions; inspected fullscreen screenshots for placement, bar clearance, expanded stacking, and closing behavior.
  • Recorded the interaction and inspected the bottom-deck expansion frame by frame. Restored the installed shell and original bar position afterward.

An intermittent notification layout/placements binding-loop warning appeared during live verification. Running the same sequence against the unmodified base in a separate worktree also reproduced a placements binding-loop warning; that existing issue is outside this change.

Disclosure

Developed with OpenCode using GPT-6.1 Sol at the author's direction, including automated tests and live-session verification.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

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

Summary

Notifications now follow the bar: top-right for a top bar, bottom-left for a left bar, and bottom-right otherwise.

  • Notification decks sit beside the bar and stack inward.
  • Keyboard movement follows the direction notifications stack.

No actionable issues were found. git diff --check passed. Runtime tests and graphical checks were not run in this review; no graphical session was available.

Reviews (3) · Last reviewed commit: "Make notifications follow the bar positi..." · Reviewed by Greptile

@omarchybot omarchybot added the enhancement New feature or request label Nov 3, 2026
@xvvhang
xvvhang force-pushed the fix/notifications-follow-bar branch from 9d7f7fc to c92051d Compare November 27, 2026 02:47
@chessing234

Copy link
Copy Markdown
Contributor

@dhh @omarchybot the deck following the bar is in #21030.

Left bar anchors the deck on the left. A bottom bar grows the stack upward through cardY. Hit testing uses that y and still checks a card narrower than the deck, so the right-aligned width from current quattro is not dropped. The keyboard reach test sets focusedDisplayName instead of assigning the targetDisplayName getter.

Please consider closing this as superseded only after #21030 is accepted. Leaving the close to you.

@xvvhang
xvvhang force-pushed the fix/notifications-follow-bar branch from c92051d to 7679a2b Compare December 2, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants