Skip to content

fix(shell): align omarchy toggle bar semantics so on shows and off hides - #11894

Open
szaidi-code wants to merge 1 commit into
omacom:quattrofrom
szaidi-code:fix/toggle-bar-semantics
Open

szaidi-code wants to merge 1 commit into
omacom:quattrofrom
szaidi-code:fix/toggle-bar-semantics

Conversation

@szaidi-code

Copy link
Copy Markdown

Fixes #11817

Description

Currently, omarchy-toggle bar-off forwards the caller's argument directly to the underlying toggle file (bar-off). Because the toggle represents the off state (presence of ~/.local/state/omarchy/toggles/bar-off hides the bar), calling:

  • omarchy toggle bar on activated the bar-off toggle, thereby hiding the bar.
  • omarchy toggle bar off removed the bar-off toggle, thereby showing the bar.

This is inverted from the command's documented semantics and user intent.

Changes

  1. In bin/omarchy-toggle-bar, map on -> off and off -> on when forwarding to omarchy-toggle bar-off. toggle remains unchanged.
  2. Update bin/omarchy-toggle-fullscreen-desktop to call omarchy-toggle-bar off when entering full screen and omarchy-toggle-bar on when leaving full screen.
  3. Update test/shell.d/toggle-test.sh and test/acceptance.d/session-test.sh to verify that bar on clears bar-off and bar off sets bar-off.

Verification

  • Ran bash test/shell.d/toggle-test.sh on host and inside Arch Linux container (CT 201) — all 13 checks passed.
  • Ran ./test/cli — 100% pass.

Fixes omacom#11817

omarchy-toggle bar-off previously received on/off directly, which caused
'omarchy toggle bar on' to set the bar-off toggle (hiding the bar) and
'omarchy toggle bar off' to remove it (showing the bar).

Invert the on/off action passed to the underlying bar-off toggle so that
'on' makes the bar visible and 'off' hides it. Update
omarchy-toggle-fullscreen-desktop and test assertions accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy toggle bar on/off has inverted semantics

1 participant