Repository navigation
Feature: Allow user to create floating bar by adding support for custom margin and bar radius. - #9725
Open
Marc-AnthonyG wants to merge 8 commits into
Open
Marc-AnthonyG wants to merge 8 commits into
Marc-AnthonyG wants to merge 8 commits into
Conversation
Marc-AnthonyG
force-pushed
the
bar-margin-radius
branch
from
September 12, 2026 13:25
25beb83 to
87e5f48
Compare
|
Hi @Marc-AnthonyG, thanks for this, and @ekrist1 for #8975. I've built a floating-bar follow-up on top of your two commits and would like to open it as a PR that includes them unchanged, authorship kept. What it adds on top:
If you'd prefer, I can hold it until this merges and then open just the top commit. Either way is fine with me. It's part of a small set of opt-in bar changes: #13136 |
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Sep 24, 2026
bar.floating in shell.json turns the detached bar on or off without editing a theme. Unset, a non-zero [bar] margin floats the bar as before; false keeps it flush whatever the theme says. A floating bar with no theme margin floats inside the space a flush bar already has: half of Hyprland's general:gaps_out from the screen edge, so the gap above the bar matches the gap below it, and the full gaps_out at its ends, so they line up with the windows. Its exclusive zone gives the edge margin back, so Hyprland reserves what a flush bar reserves and switching floating on or off never moves a window. A theme margin keeps omacom#9725's behaviour: reserved on top of the bar. An unset radius follows decoration:rounding on a floating bar and stays square on a flush one. The theme template keeps margin and radius as commented examples, so a generated theme no longer pins radius to 0 and margin reads as unset. The omarchy agent skill (plugins.md) explains the switch, the Hyprland defaults and the theme keys, so an agent asked for a floating bar knows where to look. Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Sep 24, 2026
bar.floating in shell.json turns the detached bar on or off without editing a theme. Unset, a non-zero [bar] margin floats the bar as before; false keeps it flush whatever the theme says. A floating bar with no theme margin floats inside the space a flush bar already has: half of Hyprland's general:gaps_out from the screen edge, so the gap above the bar matches the gap below it, and the full gaps_out at its ends, so they line up with the windows. Its exclusive zone gives the edge margin back, so Hyprland reserves what a flush bar reserves and switching floating on or off never moves a window. A theme margin keeps omacom#9725's behaviour: reserved on top of the bar. An unset radius follows decoration:rounding on a floating bar and stays square on a flush one. The theme template keeps margin and radius as commented examples, so a generated theme no longer pins radius to 0 and margin reads as unset. The omarchy agent skill (plugins.md) explains the switch, the Hyprland defaults and the theme keys, so an agent asked for a floating bar knows where to look. Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Sep 24, 2026
bar.floating in shell.json turns the detached bar on or off without editing a theme. Unset, a non-zero [bar] margin floats the bar as before; false keeps it flush whatever the theme says. A floating bar with no theme margin floats inside the space a flush bar already has: half of Hyprland's general:gaps_out from the screen edge, so the gap above the bar matches the gap below it, and the full gaps_out at its ends, so they line up with the windows. Its exclusive zone gives the edge margin back, so Hyprland reserves what a flush bar reserves and switching floating on or off never moves a window. A theme margin keeps omacom#9725's behaviour: reserved on top of the bar. [bar] radius now applies only while the bar floats, so a flush bar stays square; unset it follows decoration:rounding, and it is capped at half the bar thickness. The theme template keeps margin and radius as commented examples, so a generated theme no longer pins radius to 0 and margin reads as unset. The omarchy agent skill (plugins.md) explains the switch, the Hyprland defaults and the theme keys, so an agent asked for a floating bar knows where to look. Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Sep 24, 2026
bar.floating in shell.json turns the detached bar on or off without editing a theme. Unset, a non-zero [bar] margin floats the bar as before; false keeps it flush whatever the theme says. A floating bar with no theme margin floats inside the space a flush bar already has: half of Hyprland's general:gaps_out from the screen edge, so the gap above the bar matches the gap below it, and the full gaps_out at its ends, so they line up with the windows. Its exclusive zone gives the edge margin back, so Hyprland reserves what a flush bar reserves and switching floating on or off never moves a window. A theme margin keeps omacom#9725's behaviour: reserved on top of the bar. [bar] radius now applies only while the bar floats, so a flush bar stays square; unset it follows decoration:rounding, and it is capped at half the bar thickness. The theme template keeps margin and radius as commented examples, so a generated theme no longer pins radius to 0 and margin reads as unset. The omarchy agent skill (plugins.md) explains the switch, the Hyprland defaults and the theme keys, so an agent asked for a floating bar knows where to look. Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Sep 25, 2026
bar.floating in shell.json turns the detached bar on or off without editing a theme. Unset, a non-zero [bar] margin floats the bar as before; false keeps it flush whatever the theme says. A floating bar with no theme margin floats inside the space a flush bar already has: half of Hyprland's general:gaps_out from the screen edge, so the gap above the bar matches the gap below it, and the full gaps_out at its ends, so they line up with the windows. Its exclusive zone gives the edge margin back, so Hyprland reserves what a flush bar reserves and switching floating on or off never moves a window. A theme margin keeps omacom#9725's behaviour: reserved on top of the bar. [bar] radius now applies only while the bar floats, so a flush bar stays square; unset it follows decoration:rounding, and it is capped at half the bar thickness. Bar popouts, clicks forwarded while one is open, and notification toasts place themselves from the bar's outer face, so they follow a floating bar. Third-party widgets get the margins as bar.barMargins. The window margins and exclusive zone are BarModel functions, tested by value along with the gaps_out parse. The theme template keeps margin and radius as commented examples, so a generated theme no longer pins radius to 0 and margin reads as unset. The omarchy agent skill (plugins.md) explains the switch, the Hyprland defaults and the theme keys, so an agent asked for a floating bar knows where to look. Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Sep 25, 2026
bar.floating in shell.json turns the detached bar on or off without editing a theme. Unset, a non-zero [bar] margin floats the bar as before; false keeps it flush whatever the theme says. A floating bar with no theme margin floats inside the space a flush bar already has: half of Hyprland's general:gaps_out from the screen edge, so the gap above the bar matches the gap below it, and the full gaps_out at its ends, so they line up with the windows. Its exclusive zone gives the edge margin back, so Hyprland reserves what a flush bar reserves and switching floating on or off never moves a window. A theme margin keeps omacom#9725's behaviour: reserved on top of the bar. [bar] radius now applies only while the bar floats, so a flush bar stays square; unset it follows decoration:rounding, and it is capped at half the bar thickness. Bar popouts, clicks forwarded while one is open, and notification toasts place themselves from the bar's outer face, so they follow a floating bar. Third-party widgets get the margins as bar.barMargins. The window margins and exclusive zone are BarModel functions, tested by value along with the gaps_out parse. The theme template keeps margin and radius as commented examples, so a generated theme no longer pins radius to 0 and margin reads as unset. The omarchy agent skill (plugins.md) explains the switch, the Hyprland defaults and the theme keys, so an agent asked for a floating bar knows where to look. Co-Authored-By: Claude <noreply@anthropic.com>
A bar is usually set further off the edges it spans than off the one it hangs from — sketchybar and waybar both inset 8 at the sides and 4 at the top — which a single margin cannot express. Read the gap through Geometry.parseWidthSpec, the width spec the border widths already take, so margin accepts N, "Y X", "T X B" or "T R B L" with no new vocabulary. A scalar still means every edge. Two things are only reachable once the bar is detached: windowScreenPoint() mapped drag points from the screen corner, leaving the drop marker and the drag ghost a margin away from the cursor and handing nearestScreenEdge() a skewed point. A detached bar's origin is the gap itself on the axes it spans, and the far edge less its own size and gap on the one it is anchored to. omarchy-bar-text-color crops the wallpaper at the screen edge to choose a legible transparent-mode foreground, a strip a detached bar no longer covers. It takes an --inset now, applied to all four crops. At margin 0 the mapping returns identical coordinates and the crops are byte-identical, so a flush bar is untouched.
Marc-AnthonyG
force-pushed
the
bar-margin-radius
branch
from
October 19, 2026 19:27
87e5f48 to
a571fe0
Compare
Contributor
[Medium impact] The PR appears safe to merge; both numbered previous findings are fixed. SummaryAdds configurable bar margins and rounded corners through
Both numbered findings from the previous review are fixed. No new actionable issues were found.
|
A detached bar sits its margin off the screen edge, but the panels opened from it, the clicks they forward back to the bar, and notification toasts still placed themselves as if it were flush: with a 10px margin a top bar's panels overlapped it and opened a margin left of their icon, and toasts covered it. Panels now place themselves from the bar window's origin and outer face (PanelGeometry.js), popup cards leave room for the edge margin, and toasts clear it. Widgets get the margins as bar.barMargins and plugins that place their own windows as shell.bar.barMargins, both as copies. Taken from Cristian Fleischer's floating bar work in omacom#13138, without its floating switch. Co-authored-by: Cristian Fleischer <1486327+cristian-fleischer@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QJ9xdGDgAWUqbEooHGuMBS
"4 8" is 4 top and bottom and 8 left and right, which is 4 from the anchored edge only for a top or bottom bar; on a side bar the 8 is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QJ9xdGDgAWUqbEooHGuMBS
The bar's size and its new insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample moved off the strip a detached bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QJ9xdGDgAWUqbEooHGuMBS
A top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QJ9xdGDgAWUqbEooHGuMBS
The bar handed out the margin width spec as written, so a top bar with "4 8" told widgets and plugins it had a 4px gap below it, and a flush bar could report a margin. barMargins now holds only the anchored edge and the two it spans, as numbers, and panel placement reads them as numbers whatever bar supplied them. Moving the bar previews it where it will land, off the candidate edge by that edge's margins and rounded like the bar. A hidden bar parks by its thickness alone, which already puts it off screen whatever its gap. The shell.toml parsing and the per-edge margins are tested by value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QJ9xdGDgAWUqbEooHGuMBS
The manual's bar chapter shows where to set the margin and radius, and the reference and theme template say how they read, scale and interact with hiding and a camera cutout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QJ9xdGDgAWUqbEooHGuMBS
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 20, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 20, 2026
A top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 20, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 20, 2026
A top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 20, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 20, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 20, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 22, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 22, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 22, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 22, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 26, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 26, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 26, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 26, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 26, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 26, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 26, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 26, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 29, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 29, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 29, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 29, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 29, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 29, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 29, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Oct 29, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Nov 2, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Nov 2, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Nov 2, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Nov 2, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Nov 2, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Nov 2, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Nov 2, 2026
The bar's size and its insets are logical pixels, but the screen was measured in hyprctl's physical mode, so on a scaled display the sample missed the strip a floating bar covers. Measure the screen in logical pixels too, and fall back when a top or left inset pushes the strip off the screen instead of sampling what is left of it. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
cristian-fleischer
added a commit
to cristian-fleischer/okimarchy
that referenced
this pull request
Nov 2, 2026
A theme top margin moves the bar down past part or all of a camera cutout, but the bar still took the whole cutout as its floor and still moved its center sections beside the right one. The cutout now reaches into the bar only as far as it extends past the margin: the floor shrinks by the margin, and a margin that clears the cutout leaves a plain bar with its center in the middle. A flush bar has no margin, so it is unchanged. A bar floating in the gap keeps the flush floor. It reserves only what a flush bar reserves, so a thinner bar there would move the windows when floating is toggled. From Marc-Anthony Girard's omacom#9725. Co-authored-by: Marc-Anthony Girard <marcanthony.girard.pro@gmail.com> Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow user to customize the emplacement of the bar without having to fork it. This PR is an iteration over #8975
What you get
[bar] marginandradiusinshell.toml.margintakes the same CSS-style list the border widths already take.Both default to
0to replicate current state.What changed
Style.qml— adds themarginandradiustokens;marginis read throughGeometry.parseWidthSpec, the width spec the border widths already use, so there is no new vocabulary.Bar.qml— the surface carries the gap on each edge it touches and paints its background in a roundedRectanglerather than the window clear colour, which is what lets a radius round it. Hiding parks by the bar's size plus the anchored edge's gap, so no sliver is left on screen.windowScreenPoint()— maps drag points from the bar's own origin. It assumed that origin was the screen corner, which left the drop marker and drag ghost a margin away from the cursor and handednearestScreenEdge()a skewed point.omarchy-bar-text-color— takes an--inset. It crops the wallpaper at the screen edge to choose a legible transparent-mode foreground, and that is a strip a detached bar no longer covers.Result:
