Skip to content

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
omacom:quattrofrom
Marc-AnthonyG:bar-margin-radius
Open

Marc-AnthonyG wants to merge 8 commits into
omacom:quattrofrom
Marc-AnthonyG:bar-margin-radius

Conversation

@Marc-AnthonyG

Copy link
Copy Markdown

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] margin and radius in shell.toml. margin takes the same CSS-style list the border widths already take.

[bar]
margin = "4 8"   # 4 from the anchored edge, 8 at the two it spans
radius = 16

Both default to 0 to replicate current state.

What changed

  • Style.qml — adds the margin and radius tokens; margin is read through Geometry.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 rounded Rectangle rather 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 handed nearestScreenEdge() 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:
screenshot-2026-09-01_21-39-59

@cristian-fleischer

Copy link
Copy Markdown

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>
@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
Espen Kristensen and others added 2 commits October 19, 2026 19:14
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.
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both numbered previous findings are fixed.

Summary

Adds configurable bar margins and rounded corners through shell.toml.

  • Users can lift and round the bar with settings in shell.toml.
  • Popouts and alerts follow the bar when it sits away from the screen edge.
  • Transparent bar text samples wallpaper where the inset bar sits.

Both numbered findings from the previous review are fixed. No new actionable issues were found.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["shell.toml: margin and radius"] --> B["Style.bar"]
  B --> C["Bar placement and background"]
  C --> D["Panel and notification spacing"]
  C --> E["Drag coordinates and previews"]
  C --> F["Wallpaper sample"]
  C --> G["Camera cutout clearance"]
Loading

Reviews (3) · Last reviewed commit: "Document floating the bar for users" · Reviewed by Greptile

Comment thread shell/plugins/bar/Bar.qml Resolved
Comment thread shell/plugins/bar/Bar.qml Resolved
Comment thread shell/plugins/bar/Bar.qml Resolved
Comment thread shell/plugins/bar/Bar.qml Resolved
Comment thread docs/omarchy-shell.md Resolved
claude and others added 6 commits October 19, 2026 19:59
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants