Repository navigation
Description
Summary
In shell/plugins/notifications/Delivery.js, barThickness() looks for bar.barSizeFor(screenName) and falls back directly to bar.barSize. However, third-party and cloned notification plugins (clonedFrom: "omarchy.notifications") receive a scoped PluginBarStateApi object created by shell/shell.qml (pluginBarStateFor()), which exposes bar.barSizes (a per-screen thickness map keyed by screenName) and does not expose barSizeFor().
As a result, cloned/third-party notification plugins ignore per-screen bar thickness overrides (for example, notched MacBook displays where one monitor's bar is taller than bar.barSize) and fall back to the global barSize or defaultBarSize.
Environment
- Omarchy version:
4.6.0rc3-1 - Compositor: Hyprland
0.57.2+ Quickshell (omarchy-shell) - Affected files:
shell/plugins/notifications/Delivery.js(lines 79–85)shell/shell.qml(lines 477–491,pluginBarStateFor)
Root Cause
In shell/shell.qml:481-485:
api.barHidden = Qt.binding(function() { return shell.bar ? shell.bar.barHidden === true : false })
api.barSize = Qt.binding(function() { return shell.bar ? Math.max(0, shell.bar.barSize || 0) : 0 })
api.barSizes = Qt.binding(function() { return shell.bar ? shell.detachedBarSizes(shell.bar.screenBarSizes) : ({}) })In shell/plugins/notifications/Delivery.js:79-85:
function barThickness(bar, screenName, defaultBarSize) {
if (!bar) return Number(defaultBarSize) || 0
if (bar.barHidden) return 0
var size = Number(typeof bar.barSizeFor === "function" ? bar.barSizeFor(screenName) : bar.barSize)
if (!isFinite(size) || size <= 0) size = Number(defaultBarSize) || 0
return Math.max(0, size)
}Because PluginBarStateApi has barSizes (object map) instead of barSizeFor (function), typeof bar.barSizeFor === "function" is always false in cloned plugins, so per-screen thicknesses in bar.barSizes[screenName] are never read.
Expected Behavior
Delivery.barThickness() should check:
bar.barSizeFor(screenName)whenbar.barSizeForis a function (first-party hostshell.bar),bar.barSizes[screenName]whenbar.barSizesis an object map containing a positive thickness forscreenName(PluginBarStateApi),bar.barSize, and finallydefaultBarSize.
Steps to Reproduce
- Clone
omarchy.notificationsinto~/.config/omarchy/plugins/<user>.notifications(omarchy plugin clone omarchy.notifications). - Run on a multi-monitor or notched display setup where
shell.bar.screenBarSizes[screenName]differs fromshell.bar.barSize. - Trigger a notification on that display; observe that
Delivery.barThickness(shell.bar, screenName, defaultBarSize)ignoresbar.barSizes[screenName].
Proposed Fix
See #22010.
Filed by Gemini 4 Carbon via Antigravity.
Activity
omarchybot commentedon Dec 6, 2026
Codex 6.2 Sol High tested the scoped bar API in Quickshell on a worker with simulated display sizes. On
v4.6.0-rc3,v4.6.0, andquattro, notifications read the 40 px screen entry throughbarSizeFor()with the global size set to 26 px. I recommend closing this report based on that result. Scoped bar API in RC3omarchybot commentedon Dec 6, 2026
I retested this with a fresh notifications clone loaded by the running Quickshell service on
quattro. With the global bar size held at 26 px, raising the simulated display’s bar from 26 to 140 px moved the notification offset from 31 to 145 px. The clone exposedbarSizeFor(). Opus 5.5 High and muse-wonder via pi at high effort reviewed the source with Codex 6.2 Sol High and agreed that the stock clone takes that path.Could you share whether the MacBook’s clone was freshly made and, before applying #22010, what
typeof barRef.barSizeFor,barRef.barSize, andbarRef.barSizes["eDP-1"]showed in the clone’smarginsFor()? That would show whether the missing height comes from the bar’s published size or from the clone’s lookup.NessDan commentedon Dec 6, 2026
Confirmed:
shell/services/PluginBarStateApi.qml:18-22already definesbarSizeFor(screenName)on stock clones (pluginBarStateFor()inshell/shell.qmlinstantiatesPluginBarStateApi), so this was a false alarm from readingshell/shell.qmlwithout checkingPluginBarStateApi.qml. Closing this report and #22010.Filed by Gemini 4 Carbon via Antigravity.