Repository navigation
Conversation
Automated AI review
The defaults do not fully preserve existing behavior. Handing first-party widgets a per-monitor bar object drops Verified (source review against Quickshell and Hyprland source):
First-party keyboard panels lose one-click switching to another bar icon
( Button registration still reaches Impact: with the new options off, every first-party panel now needs two clicks to switch to another bar panel. Established from source; not observed on a desktop. Suggested change: add Existing shell test fails on this head
Suggested change: once the facade question above is settled, update the assertion and the README to the new first-party contract.
|
| Colour | |
|---|---|
| Helper candidates | Color.bar.text or Color.background |
| Popup card background | Color.popups.background, which defaults to Color.background (shell/Commons/Color.qml:78-81) |
| Panel text when the helper picks the contrast colour | Color.background, the same as the card |
Impact: a dark theme with a bright top strip in the wallpaper can make panel labels, icons and slider fill invisible. Established from source; not rendered.
Suggested change: keep foreground: root.foreground on the facade and let only barForeground follow the per-monitor sample.
transparentOnlyWhenWorkspaceEmpty: stale special-workspace state after enabling at runtime
The activespecial listener runs only while the option is on (Bar.qml:1162-1170), and visibleSpecialWorkspaceNames takes priority over lastIpcObject.specialWorkspace, which Quickshell does not refresh on special-workspace events. Sequence: open a populated scratchpad with the option on, turn it off, hide the scratchpad, turn it on again. The stored name still points at the hidden, populated workspace. The reverse case is a scratchpad shown while the option is off.
Impact: after the option is toggled at runtime, a bar can stay solid on an empty monitor, or transparent over a shown scratchpad, until the next special-workspace toggle. Established from source; not observed on a desktop.
Suggested change: track the special-workspace events regardless of the option, or clear and re-fetch monitor state when it is enabled.
Smaller notes
- Existing
transparent: truesetups: the base kept the bar solid until the helper returned a text colour. The head clears the background immediately and shows theme text until the 120 ms timer and helper finish (Bar.qml:1310, 1426). This contradicts the comment atBar.qml:1098-1099, and if the helper never returns a colour, the bar now stays transparent. Transient in the normal case. - Helper reruns on unrelated events: in workspace mode every Hyprland raw event, including title changes on other workspaces, schedules
syncTransparency(). While the focused workspace is empty, that relaunchesomarchy-bar-text-color(ImageMagick) after each burst. Filtering to window, workspace, special-workspace and monitor events would avoid this. CPU cost not measured. - Mixed monitors: third-party widgets (
PluginBarApi,Bar.qml:130-145) and drag ghost/border chrome still taketransparentandbarForegroundfrom the focused monitor. For example, a third-party widget on a solid monitor can get the contrast colour chosen for an empty focused monitor. Without the per-monitor option, an empty unfocused monitor also shows theme text whenever the focused monitor has windows. --screensize:HyprlandMonitor.width/heightare physical, untransformed mode pixels, whilebarSizeis logical. A rotated or scaled monitor is sampled from the wrong region or too thin a strip.barWindow.screen.width/heightgives the logical, oriented size.
Review information
Test scope: Source review of the pinned head 30b88100 and its merge-base, including the Quickshell Hyprland IPC module and Hyprland event and monitor source (Quickshell v0.3.1 and a 2026-09-25 revision; Hyprland v0.56.2 and a 2026-09-23 revision; Omarchy does not pin either). The static portion of plugin-auth-boundary-test.sh was run in a sandbox on base and head. The Node-based test blocks were not run, and no desktop session was used, so runtime and visual effects above are established from source, not observed.
AI process: Opus 5.5 Medium coordination and synthesis, independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments with targeted follow-up questions, Opus 5.5 Medium editorial check.
Opt out: To stop receiving these reviews, reply to this comment saying so.
|
@llstrk — following up on your review of Changes addressing the review
The follow-up in
Validation
The temporary diagnostics and test plugin were removed and the original desktop configuration restored after verification. |
Automated AI review
Follow-up to the earlier review of Verified: all eight earlier findings are resolved at
The new Correction to an earlier Verified note: the earlier review gave Shared wallpaper sampler keeps a colour computed from old inputsThe root sampler ( This race already exists on the base. Before this PR, every Impact: small. A shared bar colour computed from the previous theme or position, and possibly the previous wallpaper, stays until the next wallpaper, theme or position change or transparency toggle. In workspace mode it is also resampled once every monitor is occupied and one empties again. This happens only when the timer fires before the helper exits. Established from a Node harness running the real Suggested change: give the root sampler the same pending flag and Optional test improvement: no test exercises the per-surface retry. Setting Smaller notes
Review informationTest scope: Source review of AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
|
@llstrk — thanks for the follow-up review at
Verification: The focused transparency, bar, and tray shell tests, QML text-format check, bar-widget contract, |
|
Conditional bar transparency is interesting UX. Merge is dirty; community review caught clickTargets / sampler races that the author says are fixed. Rebase and re-verify the facade contract before review. |
[Medium impact] The PR appears safe to merge; the previous test concern is fully addressed. SummaryAdds opt-in, per-monitor bar transparency based on visible windows, with optional wallpaper-aware text colors for each monitor.
|
|
@jandrusk — the conflicts are resolved in The resolution preserves upstream's background API, five layout sections, persistent widget hosts, notch handling and drag behavior, while retaining the earlier click-target, special-workspace and sampler-race fixes. Facade re-verification also covered the new upstream contracts:
The new I also ran the merged branch's actual desktop shell on Hyprland 0.57.1, inspected full-screen captures, verified solid → transparent → identical solid pixels, and opened audio/display panels. The original desktop shell and settings were restored afterward. Physical dual-monitor hotplug was not repeated. Standalone Qt |
Summary
A transparent bar should let the wallpaper breathe when the desktop is genuinely clear. The moment an application is visible, including a scratchpad or agent window, the bar should become solid again so controls remain visually grounded and readable.
What This Adds
bar.transparentOnlyWhenWorkspaceEmptycontrols whether bar transparency follows visible windows.bar.transparentForegroundPerMonitorgives each monitor its own wallpaper-aware text color while transparent.false; the new transparency policies are opt-in.Behavior
bar.backgroundis"opaque"or"glassy"The decision is made independently for every monitor. An empty display can keep its transparent bar while another display with applications has a solid one. A visible special workspace, such as the OpenCode agent scratchpad, counts as an application on that monitor; a hidden special workspace does not.
Configuration
{ "bar": { "background": "none", "transparentOnlyWhenWorkspaceEmpty": true, "transparentForegroundPerMonitor": true } }transparentForegroundPerMonitoris optional. When enabled, every first-party bar surface samples the wallpaper using that monitor's dimensions and selects its own legible foreground color. This also keeps mixed transparent and opaque monitors independent, preventing a bar from disappearing when another monitor has a different visibility state.Compatibility Notes
The two new settings default to
false, preserving the existing solid/transparent background policy. Two color roles also change for existing transparent-bar setups: symbolic tray icons on the bar now follow the wallpaper-awarebarForeground, and clock, weather, and tray popup text usesColor.popups.text. Shipped themes assign the same text color to bar and popups; custom themes can set those roles independently.The branch now includes
quattrothroughe485c622, preserving its opaque/glassy/clear background selection, five-section layout, persistent widget pools, notch-aware sizing, drag behavior and panel handoffs. Legacytransparent: trueremains supported whenbackgroundis absent; an explicitbackgroundtakes precedence.Upstream #17229, commit
796e169a, deliberately removedScreenMoveRemap: Hyprland 0.57 moves mapped surfaces with their monitor. This PR retains upstream's removal and its notch-readiness visibility gate, rather than reintroducing the obsolete helper or forcingvisible: true.Implementation Notes
activespecialandactivespecialv2Hyprland events.Related Work
#7568 proposes
bar.transparent: "dynamic"with a different policy: it evaluates the focused workspace and considers floating-only workspaces empty. This PR evaluates every monitor independently and counts all visible windows, including floating windows, as occupied. The configuration approaches overlap and will need a maintainer choice if both move forward.Evidence
4.0.0.r7787.g5ea0c80-1, the cloned bar loggedScreenMoveRemap is not a type, thenbar option epgeroy.bar failed to load, falling back to omarchy.bar. The updated mapped-surface regression assertion also failed before the fix.After: The merged branch's actual shell was run on Hyprland 0.57.1. Live pixel comparisons verified occupied → empty → occupied: solid background
srgb(1,4,9)→ wallpapersrgb(121,160,176)→ pixel-identical solid background. Audio and display panels opened with readable content. Full-screen captures were inspected for layout and clipping. The original shell, configuration and workspace were restored after verification.Focused tests passed after the compatibility fix:
bash test/shell.d/bar-test.shbash test/shell.d/bar-transparency-test.shbash test/shell.d/tray-test.shbash test/shell.d/qml-text-format-test.shbash test/shell.d/plugin-auth-boundary-test.sh(including runtime)bash test/shell.d/bar-widget-contract-test.shbash test/shell.d/bar-drag-test.shbash test/shell.d/bar-notch-test.shbash test/shell.d/bar-click-clipping-test.shbash test/shell.d/tray-menu-test.shbash test/shell.d/keyboard-panel-lazy-test.shbash test/shell.d/color-reference-test.shbash test/shell.d/config-test.shbash test/shell.d/clock-test.shbash test/shell.d/weather-test.shgit diff --checkThe new runtime fixture instantiates the actual bar, persistent widget hosts and duplicate third-party widgets. It checks per-surface injection, one-click-switching click targets, popup geometry and state, clear/opaque transitions, and facade identity/ownership after removing one duplicate. The function harness retains the mixed-monitor, scratchpad and busy-sampler regressions and adds modern/legacy background precedence checks.
The config suite initially lacked sparse-checkout dependencies; it passes after materializing
default/. Standalone Qt 6qmllintrejects Quickshell'sidinside the tooltipanchorproperty on both unchanged upstream and this branch. Real Quickshell runtime tests pass. The full shell suite and physical dual-monitor hotplug were not run for this merge-resolution follow-up.Earlier feature validation included live dual-monitor checks: empty and occupied monitors render independently, visible scratchpad windows make their monitor's bar solid, and both bars remain visible in mixed states.
Screenshots
No visible change: the merge-resolution follow-up preserves the previously verified adaptive appearance while adopting upstream's current bar layout and background API. Local full-screen reference/candidate captures and audio/display popup captures were inspected; they are not committed to the repository.
Merge Danger
Door: Two-way
The feature and merge resolutions are revertible. No configuration migration or data changes are required.
Blast Radius: Bar
The feature affects bar backgrounds, wallpaper-aware icon colors, popup text roles and widget facade routing. Both policy flags default to off; opaque/glassy modes retain upstream behavior. Monitor movement relies on the current upstream Hyprland 0.57 behavior, not the removed remap workaround.