Skip to content

Rework bar dragging, sections and widget orientation - #15517

Merged
outfoxxed merged 4 commits into
quattrofrom
bar-center-box-and-drag
Oct 15, 2026
Merged

outfoxxed merged 4 commits into
quattrofrom
bar-center-box-and-drag

Conversation

@outfoxxed

Copy link
Copy Markdown
Contributor
  • Splits center + centerAnchor into a center box and begin/end regions around it
  • Stops recreating widgets on rearrange
  • Significantly improves drag ux
  • Fixes growth direction for expanding widgets (tray, indicators)

outfoxxed and others added 2 commits October 14, 2026 20:54
The bar used to pin the tray to the inner end of its section whatever the
layout said, so the order on screen and the order a placement like "after
the tray" goes by disagreed. It now draws the tray like any other widget.
A migration writes the tray where the bar drew it, keeping the one tray a
section showed, and the default layout lists it first in the right section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rEnd

The center section is now a box in the middle of the bar whose widgets are
centered as one group, with centerBegin and centerEnd hanging off its two
edges, in place of centerAnchor naming the one widget pinned to the middle.
An empty box takes no room. During a drag it opens a sliver that a widget can
be dropped into or beside, and grows to take in one that would land in it.
Where a display notch covers the middle of the bar, the three run on beside
the right section. The tray's drawer section stays as it was.

A migration splits an existing center around its anchor, so the bar looks as
it did. Plugin manifests naming center mean beside the clock and land in
centerEnd, as widgets that name no section do.

With the center section no longer one area to hover, the indicator peek now
opens while the pointer is anywhere on the bar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge; no new actionable issues were found, and the previous drawer-direction issue is fixed.

Summary

Reworks bar sections and dragging while keeping widgets running when they move.

  • The bar keeps its center widgets in a box, with sections on either side.
  • Dragging a widget opens room at its source and proposed landing spot.
  • Widgets grow from the edge that keeps their visible contents steady.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Config["Bar layout"] --> Keys["Stable widget keys"]
  Keys --> Pool["One widget pool per bar surface"]
  Pool --> Slots["Section slots borrow widgets"]
  Drag["Drag a widget"] --> Room["Show space at the drop point"]
  Room --> Check{"Layout unchanged?"}
  Check -->|Yes| Save["Save the move"]
  Check -->|No| Cancel["Leave the new layout alone"]
  Save --> Config
Loading

Reviews (2) · Last reviewed commit: "Make room for a dragged widget, and keep..." · Reviewed by Greptile

Comment thread shell/plugins/bar/Bar.qml Resolved
outfoxxed and others added 2 commits October 14, 2026 21:26
A widget that declares fixedEdge gets the edge of it that stays put when it
grows, following how its section is anchored: start for the left section and
centerEnd, end for the right section and centerBegin, center for the center
box. When the box holds more than one widget, its first and last grow away
from the middle like the sections beside them. The indicators lay their
active block against that edge and reveal their quick actions on the far
side, mirrored when the widget faces the other way, so the icons already
showing keep their place under the pointer. The tray keeps its pinned icons
against that edge and opens its drawer away from it, pushing the chevron
ahead, with the tray section beside the pinned icons, and the widgets in
the section grow from that same edge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dragging a widget now makes room for it where it would land: the other
widgets slide apart, the room crossfades from place to place, and the
dragged widget folds away from where it was. Its ghost is outlined like the
room and, let go, glides from the pointer into the room before the move is
written. The widget picked up is the one that moves, and it keeps its own
instance even beside another with the same id and settings. A layout
written from elsewhere that rearranges the bar mid-drag makes the drag let
go. The empty center box shows as a line that takes no room, and a drop
within the bar's thickness of it lands in it. The tray's drawer, which
opens for the drag, holds the tray section the same way: outlined, or a
line when empty, moving with the drawer as it slides, and taking a drop
over it or near it.

Each bar section is now a keyed model, and each bar surface keeps one
instance of every widget, handed to whichever section shows it. A widget
moved to another section, by a drag or a config write, keeps running with
its new edge and settings rather than being built again, and one no section
shows, as in the drawer of a tray taken off the bar, is unloaded. A drag
closes the dragged widget's panel, which would not follow it.

Custom command modules no longer refuse the moduleName and settings the bar
hands them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@outfoxxed
outfoxxed force-pushed the bar-center-box-and-drag branch from 338850c to 9b8917b Compare October 15, 2026 04:33
@outfoxxed
outfoxxed merged commit b7e900c into quattro Oct 15, 2026
2 checks passed
omarchybot added a commit to JeronimoColon/omarchy that referenced this pull request Oct 15, 2026
Keeps the live moduleHover coordinates and undefined reset from this branch alongside quattro's rework of bar dragging (omacom#15517), which rewrote the drag.target comment beside it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
omarchybot added a commit to ryantm/omarchy that referenced this pull request Oct 15, 2026
Resolve the conflict with omacom#15517 by exporting both iconNeedsTint and quattro's new shownSpan from TrayModel.js.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
omarchybot added a commit to sprajs/omarchy that referenced this pull request Oct 15, 2026
quattro's bar rework (omacom#15517) moved the weather anchor into the new centerEnd section, so the refused-enable fixture case now asserts on centerEnd, keeping this branch's full-config, revision, signal and write checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
diogochaves added a commit to diogochaves/omabox that referenced this pull request Nov 4, 2026
The bind (finding 400) kept a clean box's frozen clock from a race in
Omarchy 4.0's shell, which lost a widget's inline settings when the
defaults loaded first. Omarchy fixed it in the commit that split the
bar's centre (omacom/omarchy#15517), so the bind now goes only where
center_split finds no split centre. On 4.5.0 final, 30 clean boxes under
32 busy loops kept "Friday 12:00" with no bind; a 4.0.6 --omarchy tree
still gets it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw3isKX8SsX6ebvkvbwkC
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.

2 participants