Cloning the clock unpins it: centerAnchor does not follow clones
System details
AMD Ryzen 9 5900X, Radeon RX 9070, Omarchy 4.0.0-1
What's wrong?
omarchy plugin clone omarchy.clock replaces the bar slot with <user>.clock but leaves bar.centerAnchor set to "omarchy.clock". That id is no longer in the center list, so the bar falls back to centering the whole group. Hovering the clock then reveals the inactive indicators, the center grows, and the clock slides — the center cluster jams against itself.
This is the opposite of what clone already claims to do. The manual says calls to the built-in id get routed to the clone, so nothing that referred to omarchy.clock needs updating. That is already true for omarchy bar move --after omarchy.clock (findRelativeBarLocation / activeCloneFor). The center pin is the one lookup that still does an exact id match.
Steps to reproduce
- Stock bar:
centerAnchoris"omarchy.clock", clock is in the center. omarchy plugin clone omarchy.clock- Confirm
~/.config/omarchy/shell.json: the center slot is now<user>.clock, butcenterAnchoris still"omarchy.clock". - Hover the clock. Inactive indicators appear. The whole center group recenters and the clock moves.
omarchy plugin remove <user>.clock restores the layout id but does not rewrite centerAnchor either. If someone has already patched centerAnchor to the clone id, remove then leaves a stale clone name and the same unpin.
Expected behavior
Clone the clock, leave centerAnchor as "omarchy.clock". The clone stays pinned at screen center. Remove the clone, the built-in is pinned again. No extra shell.json edit.
Suggested fix
Do not rewrite centerAnchor on clone enable/remove. Resolve it at runtime the same way findRelativeBarLocation already follows clones:
- Put
clonedFromon bar-widget registry metadata when the host registers a plugin widget. - When looking up the pin, exact id wins; otherwise use the unique center widget whose
clonedFromis that id. - Bind the lookup to registry revision so a clone that appears after first layout still pins.
Exact match first so naming the clone (or keeping both) still pins what was named.
Hit the same symptom from a different direction, so adding it here rather than opening a duplicate.
Cloning is one way to strand centerAnchor, but it is not the only one. Nothing in the tree repairs the pin when the widget it names leaves bar.layout.center, and every removal path splices the entry and stops:
PluginRegistry.setEnabled(id, false)—shell/services/PluginRegistry.qml:556moveBarEntry, i.e.omarchy bar move—shell/services/PluginRegistry.qml:296-298restoreCloneSource—shell/services/PluginRegistry.qml:441-457- bar drag-and-drop
moveModuleInConfig—shell/plugins/bar/Bar.qml:886-887 omarchy plugin remove/omarchy plugin disable—bin/omarchy-plugin-remove:94-96,bin/omarchy-plugin-disable:22
omarchy bar defaults is the only one that stays consistent, and only because it resets the whole .bar subtree. No migration touches centerAnchor, and there is no runtime warning.
My own case: centerAnchor pointed at a third-party bar-widget clock. I disabled that plugin, which spliced its entry out and left the id behind. omarchy.clock was still in the center and still slid on hover, because an unresolved pin recenters the whole center list — nothing in it is stable, not just the widget that went away.
Measured on 4.0.0.alpha, 1920x1200 @ 1.25, by template-matching the clock glyphs between a pointer-off-bar and a pointer-on-clock capture:
centerAnchor |
Clock shift on hover |
|---|---|
| names a widget absent from the center list | 65 px (52 logical) |
| names a widget in the center list | 0 px |
| same, bar on the left edge | 0 px, pixel-identical |
So the anchored layout is already correct in both the horizontal and the vertical branch. The bug is only that the pin is looked up with an exact id match and silently degrades when it misses.
Center list trimmed to omarchy.indicators, omarchy.clock for these. Red line marks the exact screen center; the only difference between the two images is the fix.
On the suggested fix: clonedFrom metadata resolves the clone case, but not drag-out, disable, remove, or a swapped-in third-party widget — none of those produce a clone relationship. Resolving on the id's kind instead (the last segment of <owner>.<kind>) covers all of them, including clones, with no manifest plumbing: exact id wins, otherwise the one center widget of that kind is the pin, and two of a kind stays unresolved rather than guessing.
Happy to defer to #7869 if that is the direction you prefer — I have the broader version working and tested and will open it as a PR so you can compare.
Checked against quattro at b83d3df (read in source, nothing run): the bug is still there. Cloning a widget swaps its layout entry for the clone's id in place (shell/services/PluginRegistry.qml:528-534) and nothing touches bar.centerAnchor, while the pin is found by an exact id match (shell/plugins/bar/BarModel.js:50-56, used by hasAnchor at shell/plugins/bar/Bar.qml:1552). With the anchor missed, the center is laid out as one group and the hover area covers all of it (Bar.qml:1567-1576), so hovering the cloned clock still reveals the indicators and moves it. The recent change that limits the reveal to what sits before the clock (#14267) only applies when the anchor resolves, so it does not help here.
Two open pull requests fix it in different ways: #10789 resolves the anchor at runtime by widget kind, which also covers disable, remove, omarchy bar move and drag-out, and #13545 rewrites centerAnchor in shell.json when a clone replaces its source and back when it is restored. Both close this issue and are being reviewed on their own. Which one lands, or both, is the maintainer's call, so this waits on them.
Reviewed by Claude Opus 5.5. The second opinion (Codex Medium) answered a ping but refused the review because its daily quota was spent, so this diagnosis has not been checked by a second model.
Still reproduces on omarchy 4.0.6-1 (2026-10-25), and it's a small but measurable bug rather than a cosmetic one — so I measured the impact in case it helps prioritise.
Repro
omarchy plugin clone omarchy.clock # -> ~/.config/omarchy/plugins/marcus.clock, id marcus.clock
jq -r '.bar.centerAnchor' ~/.config/omarchy/shell.json
# omarchy.clock <- still points at the (now disabled) source plugin
The clone correctly rewrites the widget entry in bar.layout.center to marcus.clock, but bar.centerAnchor keeps the source id.
Why the anchor is the awkward one
centerAnchor is the only plugin-id reference the clone path doesn't touch:
grep -c centerAnchor $(which omarchy-plugin-clone) $(which omarchy-plugin-enable) # 0, 0
omarchy bar --help # no center-anchor verb
So there's no supported way for a user to correct it — the only fix is editing shell.json by hand, which is exactly what the clone flow exists to avoid.
Measured impact
With centerAnchor stale the bar's centre section is no longer centred on the anchored widget. Capturing the bar strip and cross-correlating it against the corrected render: the centre section sits 13 px off (clock word starts at x=930 instead of x=918 on a 1920-wide bar). Nothing overflows, so it reads as "the bar looks slightly off" rather than as a bug — which is presumably why it survives.
Suggestion
Treat centerAnchor like the other id references the clone already rewrites: when the clone replaces the source entry, remap bar.centerAnchor from source_id to new_id. Alternatively, resolve a dangling centerAnchor through omarchy.clonedFrom when the anchored id is missing, which would also cover clones that were created before this was fixed. Either way it's a one-line addition in the replace path, next to the entry rewrite that already works.
Two related notes: #13442 (same symptom) is closed, but this still reproduces on current stable, so if that was closed as fixed, the fix didn't reach this path. And omarchy bar having no way to set the anchor means anyone hitting it has to hand-edit config — worth adding regardless.
Rechecked against quattro at e2c7007 after @4rarius's report on 4.0.6. I read the source and ran nothing. #13442 was closed as a duplicate of this issue, not as fixed, so it still reproducing on 4.0.6 is expected.
On quattro the bug is gone for anyone who clones the clock after upgrading. #15517 removed centerAnchor. The bar now has a center box that is centered on its own, with centerBegin and centerEnd hanging off its edges (shell/plugins/bar/Bar.qml:2296-2353), and the default layout puts the clock alone in that box (shell/shell.qml:52-58). Cloning swaps the clone into its source's slot (shell/services/PluginRegistry.qml:560-566), and removing the clone puts the source back in the same slot (PluginRegistry.qml:460-483), so the clock stays in the middle either way. That change has only shipped in the v4.5.0 release candidates so far, not in a stable release.
One case is still open: users who cloned the clock before upgrading. When migration 1791969355 meets centerAnchor: "omarchy.clock" with <user>.clock in the center list, it can't find the anchor. It keeps the whole old center group together in the box and deletes centerAnchor (migrations/1791969355.sh:21-29), so the indicators stay beside the clock in the center box. #13545 now fixes exactly this: when the named anchor is missing, the migration follows it to the center widget whose manifest records it as clonedFrom, or failing that to the one widget of the same kind. That only reaches installs that haven't run the migration yet. It won't help anyone who already took a 4.5 RC, because the runner skips a migration it has already marked done and the first run deleted the anchor. #10789 changes the runtime anchor lookup that #15517 removed, so it no longer applies as written. Both pull requests are being reviewed on their own, and this issue waits on the maintainer's decision on #13545.
Reviewed by Claude Opus 5.5, with Codex Medium as the second opinion. Codex agreed with this reading, and independence is not guaranteed. It added the point about users who already took a 4.5 RC.
Additional affected upgrade: 4.4 → 4.5.0-3 with a pre-existing clock clone
Adding an affected stable-release installation and a working configuration-only fix, rather than opening another issue. This also relates to the moving active indicator targets reported in #9291.
Environment
- Omarchy 4.5.0-3, upgraded from 4.4
- Hyprland 0.56.2
- Top bar; a pre-existing custom clock whose manifest declares
"omarchy": { "clonedFrom": "omarchy.clock" }
Observed symptom
https://github.com/user-attachments/assets/152c8bdb-b78c-429b-b79d-9c713e697c4e
Revealing and selecting the inactive center-bar controls was easy, but returning to click an active control (for example recording/reminders) was difficult because the controls moved away as the hidden indicators appeared. The problem became noticeable after the upgrade.
The saved configuration after the upgrade had no bar.centerAnchor, and all of these widgets remained together in bar.layout.center:
[
{ "id": "omarchy.indicators" },
{ "id": "nurfaizfoat.clock" },
{ "id": "omarchy.elsewhen" },
{ "id": "nurfaizfoat.weather" },
{ "id": "omarchy.system-update" }
]
Entries are abbreviated here; their individual settings were preserved in the fix.
Working local fix
Split the same entries, without changing their relative order or settings:
{
"centerBegin": [
{ "id": "omarchy.indicators" }
],
"center": [
{ "id": "nurfaizfoat.clock" }
],
"centerEnd": [
{ "id": "omarchy.elsewhen" },
{ "id": "nurfaizfoat.weather" },
{ "id": "omarchy.system-update" }
]
}
The shell hot-reloaded the configuration without a restart. A live hover check with Stay Awake already active showed that its icon stayed in place while the inactive indicators appeared, and the custom clock remained centered. Recording/reminder flows were not started just for this check.
Migration finding and suggestion
The installed migrations/1791969355.sh resolves the old anchor by exact entry ID; if it cannot resolve it, it leaves the center list unsplit and deletes centerAnchor. That is consistent with the previously diagnosed cloned-clock migration case, although I do not have the pre-upgrade anchor value to prove the exact migration path on this installation.
PR #13545 looks relevant for installations that have not yet run that migration. Please also consider a documented, opt-in repair command or a narrowly scoped configuration warning for users who already upgraded and now have an unsplit legacy center list. The old anchor may already be gone, so silently guessing or forcibly splitting every multi-widget center layout could overwrite an intentional customization. A backup plus an explicit choice of the center clock would let affected users recover without resetting their custom widgets or the whole bar.
Separate cause from the clock-crossing one in #17256: in Indicators.qml, indicatorAreaHovered is a single bool set by three nested HoverHandlers, so the last writer wins. Moving from the dim strip onto the active icon fires the strip handler's hovered=false while the pointer is still on the widget, so the strip shuts. With indicators inside a multi-widget center box (e.g. migrated off centerAnchor, see #7868) the box then re-centres and the active icon jumps away from the pointer. Moving back reopens the strip, which is a loop. With more active than inactive icons it loops even under a still pointer.
#17256 fixes approaching from the left, but not from the clock side and not this loop. Counting the handlers (+1/-1, like Bar.setBarHovered, with destruction guards for the orientation Loader) fixes both and keeps the re-centring. The patch is about 15 lines in Indicators.qml and composes with #17256.
Tested: bar-test.sh passes 240/240, and a hover model shows the loop gone. I also applied it to a real bar on Omarchy 4.5.0-3, and the jump no longer happens approaching from either side.
Patch
diff --git i/shell/plugins/bar/widgets/Indicators.qml w/shell/plugins/bar/widgets/Indicators.qml
index 82c82f1..9a5c661 100644
--- i/shell/plugins/bar/widgets/Indicators.qml
+++ w/shell/plugins/bar/widgets/Indicators.qml
@@ -12,7 +12,13 @@ BarWidget {
readonly property var indicatorEntries: indicatorEntriesFromSettings(settings)
property var activeIndicatorIds: []
property var indicatorActiveStates: ({})
- property bool indicatorAreaHovered: false
+ // How many of the widget's nested hover handlers hold the pointer. A single
+ // flag, set by whichever handler spoke last, went false as the pointer
+ // stepped off the inactive strip onto the active block, still on the
+ // widget: the strip shut, a centered box slid the active block away from
+ // the pointer, and coming back onto it opened the strip again, in a loop.
+ property int indicatorHoverCount: 0
+ readonly property bool indicatorAreaHovered: indicatorHoverCount > 0
property bool indicatorItemHovered: false
readonly property bool alwaysShowIndicators: setting("alwaysShow", false) === true
readonly property bool revealInactiveIndicators: alwaysShowIndicators || indicatorAreaHovered || indicatorItemHovered || (bar && bar.centerSectionRevealHeld === true && bar.centerHoverRevealSuppressed !== true)
@@ -74,8 +80,8 @@ BarWidget {
}
function setIndicatorAreaHovered(hovered) {
- indicatorAreaHovered = hovered
- if (hovered) indicatorHideTimer.stop()
+ indicatorHoverCount = Math.max(0, indicatorHoverCount + (hovered ? 1 : -1))
+ if (indicatorAreaHovered) indicatorHideTimer.stop()
else indicatorHideTimer.restart()
}
@@ -243,6 +249,8 @@ BarWidget {
HoverHandler {
onHoveredChanged: root.setIndicatorAreaHovered(hovered)
+ // Turning the bar destroys this tree without a leave event.
+ Component.onDestruction: if (hovered) root.setIndicatorAreaHovered(false)
}
Item {
@@ -267,6 +275,7 @@ BarWidget {
HoverHandler {
onHoveredChanged: root.setIndicatorAreaHovered(hovered)
+ Component.onDestruction: if (hovered) root.setIndicatorAreaHovered(false)
}
}
@@ -292,6 +301,8 @@ BarWidget {
HoverHandler {
onHoveredChanged: root.setIndicatorAreaHovered(hovered)
+ // Turning the bar destroys this tree without a leave event.
+ Component.onDestruction: if (hovered) root.setIndicatorAreaHovered(false)
}
Item {
@@ -316,6 +327,7 @@ BarWidget {
HoverHandler {
onHoveredChanged: root.setIndicatorAreaHovered(hovered)
+ Component.onDestruction: if (hovered) root.setIndicatorAreaHovered(false)
}
}
Rechecked quattro at c6be7abb9 after the November 5 and 6 reports. This was a source review; no worker tests or live hover checks ran.
The migration has now shipped in stable v4.5.0. The unsplit layout reported on 4.5.0-3 is consistent with the stale-anchor path in migrations/1791969355.sh:21-29: an exact ID miss leaves the center list whole and deletes centerAnchor. Without the pre-upgrade value, that does not prove which path this particular installation took. #13545 still only helps configurations that retain the old anchor and have not run the migration; it cannot repair the already-migrated configuration.
The November 6 nested-hover-handler patch targets older code. #18524 merged on November 12 and replaced those handlers with one area handler in Indicators.qml:257-259. That establishes that the patch no longer matches current quattro, not that every reported hover symptom has been reproduced or fixed. #9291 tracks the related indicator-motion reports.
For an explicit layout repair, the current CLI supports omarchy bar move <id> --section centerBegin and --section centerEnd; moving entries preserves their settings (PluginRegistry.qml:314-321). This provides the placement controls for the split @nurfaizfoat described. Automatically choosing that split for an already-migrated configuration still needs a maintainer decision, since a multi-widget center can be intentional. #13545 remains under separate review, and this issue stays open for the upgrade gap.
Checked by Codex High (GPT-6, in Codex), with Opus 5.5 High and muse-wonder via pi, thinking high. Both agreed with the source diagnosis; independence is not guaranteed. Opus also identified the existing CLI placement controls, which I checked against the command and registry implementation.