Repository navigation
A more malleable bar: pills, floating, theme hooks, agent support #13136
cristian-fleischer
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've been reshaping the Omarchy bar on my own machine and ended up with a set of small, opt-in changes that fit together. I'd like to offer them as separate PRs, and this post is the map.
Or, if you like rounded corners:
Nothing changes unless you ask
Every piece here is additive and off by default. With the new settings unset, the bar renders exactly as it does today. I checked that by screenshot diff against the packaged shell: 0 differing pixels at all four bar positions, bar background on and off, for each PR on its own. Don't enable them and nothing moves.
What it adds
Floating bar. The bar can sit off the screen edge, with the same corners as the windows (square on stock Omarchy). Without a theme value it floats inside the gap a flush bar already has: its ends line up with the windows, the gap above it matches the gap below it, and windows don't move when you switch it. Themes can set
[bar] marginandradius;bar.floatinginshell.jsonswitches it on or off.Pills. Widgets get their own background, so the bar background can go and the widgets still sit on something. One pill per run of neighbouring widgets or one per widget. Spacers and a
"group"key split runs,"pill": falsekeeps a widget bare. Text contrast is picked against the pill. Themes can style pills (colour, border, radius, inset, padding, gap) and turn them on by default.One place to switch it. Right-click empty bar space for switches for the background, floating and pills. The same switches exist as
omarchy bar pills|floatingand in Style › Menu Bar.Agents know about it. Each PR updates the
omarchyagent skill for its own feature, and the last one leaves a single bar appearance section, so "make my bar float with pills" maps to three commands instead of hand-edited JSON.The PRs
[bar]key fromshell.toml(part 1 of #11359)omarchy bar pills|floating, menu rows, the combined skill section#13137 and #13138 stand alone; the others build on earlier ones as listed. #13137 is a plain bug fix.
Credit
This builds on other people's work:
[bar]keys that Document the [bar] size keys #13137 fixes.SegmentRoles), adapted to Omarchy's bar.How this was made
Claude (Anthropic) wrote most of the code, tests and text under my supervision. I set the direction, reviewed the results, and run it on my own Omarchy install.
All reactions