Skip to content

Make omarchy toggle bar on/off match user polarity - #13670

Open
AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-bar-toggle-polarity-ef3e
Open

AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-bar-toggle-polarity-ef3e

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

omarchy toggle bar on was hiding the bar because user-facing on/off was forwarded straight to the inverted bar-off flag.

Invert polarity in omarchy-toggle-bar, and invert the bar half of fullscreen-desktop so entering fullscreen still hides the bar.

Fixes #13440

Test plan

  • test/shell.d/toggle-test.sh
  • omarchy toggle bar off hides; omarchy toggle bar on shows
  • Fullscreen desktop toggle still hides/restores bar + gaps together

Fixes #13252

User-facing on/off was forwarded straight to the inverted bar-off flag, so
toggle bar on hid the bar. Invert at the wrapper and keep fullscreen desktop
in sync (omacom#13440).

Co-authored-by: AnPod <[email protected]>
@cursor
cursor Bot force-pushed the cursor/fix-bar-toggle-polarity-ef3e branch from e7240ad to 27146f0 Compare September 29, 2026 21:17
@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 1, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 27146f0 against quattro, nothing found.

The bug is real. On a disposable Omarchy VM at the base commit, omarchy-toggle-bar on creates the bar-off flag and hides the bar, and off shows it. At this head on shows the bar and off hides it. On the live desktop, the compositor's omarchy-bar layer moved off screen and back as told. omarchy-toggle-fullscreen-desktop still hides the bar and drops the gaps on on, and restores both on off. A bare omarchy toggle bar, which the Super+Shift+Space binding and the menu use, still just flips the flag. The full-screen command is the only caller in the repo that passes on or off, and this converts it.

test/shell.d/toggle-test.sh passes at this head and fails at "bar off hides the bar" with the two scripts reverted to base, so the test really tests the fix. ./test/cli and ./test/shell ran in full on the same VM. Their remaining failures (vscode theme, ascii, kernel migrations, launch-browser, captive portal, among others) fail the same way at the base commit and are unrelated to this change. The graphical acceptance test was read, not run; its flipped calls and restore trap are consistent.

The change is the size of the problem: two scripts and the tests that pin their behaviour. Codex (medium effort) reviewed it as a second opinion, checking callers, the full-screen states and the tests, and found nothing to act on. It agreed with this review, and its independence is not guaranteed.

This fixes #13440 and is waiting on the maintainer.

@olibob

olibob commented Oct 12, 2026

Copy link
Copy Markdown

Coming from #13252. My branch did the same inversion; a few things worth noting:

  1. Heads-up: Clarify omarchy-toggle-bar's on/off help text #11803 (merged Oct 11) changed the omarchy-toggle-bar summary to "on hides the bar, off shows it", describing the current behaviour as intended. Once this PR is rebased, that summary will contradict the fix, so it'll need flipping to "on shows the bar, off hides it" (or reverting). It also goes against @jandrusk's note on omarchy toggle bar on hides the bar (on/off are inverted) #13252 that this is a bug, so it may be worth confirming which way you want it.

  2. An unknown argument is passed through to omarchy-toggle, so omarchy toggle bar sideways prints omarchy-toggle's usage and still exits 0 (the trailing omarchy-shell nudge sets the status). Handling it in the case like omarchy-toggle-animations does gives the right usage line and exit 1:

    case ${1:-toggle} in
    toggle) omarchy-toggle bar-off toggle ;;
    on) omarchy-toggle bar-off off ;;
    off) omarchy-toggle bar-off on ;;
    *)
      echo "Usage: omarchy-toggle-bar [toggle|on|off]" >&2
      exit 1
      ;;
    esac
  3. Tests for a bare omarchy toggle bar (what Super+Shift+Space and the menu use) flipping both ways, and for an unknown state being rejected without touching the flag.

Branch for reference (rebased on current quattro, summary already flipped): quattro...olibob:fix-toggle-bar-on-off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy toggle bar on hides the bar: on/off arguments are inverted omarchy toggle bar on hides the bar (on/off are inverted)

4 participants