Repository navigation
Let bar widgets live in the tray's drawer - #15281
Conversation
A fourth bar section, tray, is drawn inside the tray's drawer after the app icons. Dragging a widget onto the tray drops it there, the drawer stays open while a widget is dragged or one of its panels is up, and plugins can name tray as their default section. The open-panel mark under the tray now sits under the icon whose menu is open instead of the middle of the tray. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A cloned tray hosts the section too, through two flags on the plugin bar API. The empty drop slot shows when nothing in the section takes up space, not only when it is empty, and the open-menu mark follows an icon still sliding in with the drawer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The registry treats a clone of the tray like the tray when refusing to put it in its own drawer. The drop slot is reached through the drawer area rather than handed over separately, and the drawer's list relies on the module list skipping an empty section. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sewhere Co-Authored-By: Claude Opus 5.5 <[email protected]>
| var target = barTarget(config, placement || {}, section, key) | ||
| config.bar.layout[target.section].splice(target.index, 0, entry) |
There was a problem hiding this comment.
Tray enable loses its explanation
Enabling a tray clone with barWidget.defaultSection: "tray" and no placement skips the early check because placement is empty. When the original tray is absent, barTarget returns an error, but setEnabled calls .splice on config.bar.layout[undefined]. The command throws instead of explaining that the tray cannot go inside its own drawer. Check target.error before inserting, including when placement comes from the manifest.
Brings the fix across the tray drawer section from omacom#15281: the drawer block keeps quattro's hasDrawer guard, so a tray holding only bar widgets still gets one, and reserves only the revealed extent as before.
Quattro's tray section (omacom#15281) added "tray" to the section list in updateEntryInline, which this branch had moved inside mutateShellConfig; the resolution keeps the branch's mutation wrapper and adds the tray section to it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
One edge case I noticed: the tray section only renders when there's a tray to host it (the Loader is This also looks like it covers #7163 and the request in #6355. |
Adds a fourth bar section,
tray, drawn inside the tray's drawer after the app icons, so any bar widget can be tucked away there.omarchy bar move <id> --section tray,omarchy plugin enable <id> --section tray, andbarWidget.defaultSection: "tray"in a manifest all put a widget straight into it. Sections are nowleft|center|tray|right.superwhisper.panelbar widget is on the bar, the way Dropbox's already is.Reviewed with Codex; its three findings (empty tray hidden during a drag, the tray accepted into its own drawer over IPC, and a drop-target tie at the drawer's edge) are fixed here.
Verified in the running shell: a widget in the tray section shows in the drawer, opens its panel from there with the mark under it, and holds the drawer open. Dragging itself could not be automated here and still needs a manual try.
🤖 Generated with Claude Code