omarchy toggle bar on/off has inverted semantics (hides bar on 'on', shows it on 'off')
What happened
Running omarchy toggle bar on hides the top bar, and omarchy toggle bar off shows it — the exact opposite of what the command name and its own documented examples imply.
Root cause: omarchy-toggle-bar forwards the raw on/off argument straight through to the underlying bar-off flag without inverting it:
$ cat $(which omarchy-toggle-bar)
#!/bin/bash
# omarchy:summary=Toggle bar visibility without killing the Omarchy shell
# omarchy:args=[toggle|on|off]
# omarchy:examples=omarchy toggle bar | omarchy toggle bar off | omarchy toggle bar on
omarchy-toggle bar-off "${1:-toggle}"
Since the underlying flag is named bar-off (true = bar is hidden), passing on sets bar-off to enabled (bar hidden), and passing off disables bar-off (bar shown). The wrapper needs to invert the action before forwarding it to the bar-off flag, e.g. map on -> off and off -> on (and leave toggle as-is).
How I found it / reproduction
- On a fresh boot the top bar wasn't rendering at all, even though the
omarchy-shell(quickshell) process was alive. hyprctl layersshowed theomarchy-barlayer surface existing but positioned off-screen:xywh: 1920 -26 1920 26(26px above the visible monitor area, i.e. in its hidden position).omarchy toggle enabled bar-offreturned exit code0, confirming thebar-offflag was active (bar hidden).- Ran
omarchy toggle bar onexpecting it to show the bar — insteadomarchy toggle enabled bar-offstill returned0(still hidden), and the layer stayed aty: -26. - Ran
omarchy toggle bar offinstead — thebar-offflag was cleared (omarchy toggle enabled bar-offnow returns exit1), andhyprctl layersimmediately showed the bar back atxywh: 1920 0 1920 26(visible).
So functionally:
omarchy toggle bar on→ bar hiddenomarchy toggle bar off→ bar shown
Expected
omarchy toggle bar on→ bar visibleomarchy toggle bar off→ bar hidden
matching the command's own summary/examples ("Toggle bar visibility... omarchy toggle bar off | omarchy toggle bar on").
System details
- Omarchy version:
4.0.0-1 - Compositor: Hyprland (single laptop panel monitor,
eDP-1, active at the time of testing) omarchy debugis not an available command on this version (omarchy commands --allhas nodebugentry), so I couldn't attach the standard diagnostic log.
Suggested fix
In omarchy-toggle-bar (or wherever it lives in the source tree), invert the action before forwarding to the bar-off flag, e.g.:
#!/bin/bash
case "${1:-toggle}" in
on) omarchy-toggle bar-off off ;;
off) omarchy-toggle bar-off on ;;
*) omarchy-toggle bar-off toggle ;;
esac
Happy to open a PR with this fix if useful.
Independently hit this on 4.0.0-1 today and arrived at the same root cause, so this is a confirmation rather than a new angle. Two details that might be worth folding in, since they're what turns the inversion from a naming wart into something that actively misleads:
The hidden state is persistent, not runtime. The flag lives at ~/.local/state/omarchy/toggles/bar-off, so a hidden bar survives a reboot. That produces this sequence:
- User hides the bar (in my case accidentally —
SUPER+SHIFT+SPACEis bound to "Toggle top bar" indefault/hypr/bindings/utilities.lua:16, immediately beside theSUPER+SPACElauncher). - They reboot. The bar is still hidden, so it reads as "the reboot broke my bar" rather than "I hid it."
- They reach for the intuitive fix —
omarchy toggle bar on— which re-hides it, appearing to confirm the bar is broken rather than hidden.
So the inversion is most likely to be encountered precisely when the user is already confused about why the bar is missing, and it reinforces the wrong conclusion. Worth noting omarchy toggle bar with no verb is unaffected and does the right thing — only the explicit on/off verbs invert.
Minor discoverability note: since Omarchy 4.x dropped Waybar, a user debugging this will find no waybar process and may conclude the bar isn't running. The tell that it's hidden rather than crashed is that hyprctl layers still shows the omarchy-bar layer, parked exactly one bar-height above the monitor's top edge, with reserved: 0 0 0 0 in hyprctl monitors — which matches the y: -26 you observed.
The on -> off / off -> on mapping you proposed in the wrapper looks like the right fix.
Two open PRs address this exact inverted bar-toggle behavior. PR #9455 fixes the mapping and updates both shell and acceptance coverage. PR #9102 is a narrower implementation in the same wrapper. Each PR currently names a different duplicate report, so linking both alternatives here.
Confirmed in source on current quattro (902fd8a): bin/omarchy-toggle-bar passes on/off straight to omarchy-toggle bar-off, and the shell hides the bar whenever the bar-off flag exists (shell/plugins/bar/Bar.qml), so omarchy toggle bar on hides the bar and off shows it. Running it with no argument, as the keybinding and the menu do, is unaffected.
One thing a wrapper-only fix would miss: omarchy-toggle-fullscreen-desktop forwards its own on/off to omarchy-toggle-bar and currently relies on the inversion to hide the bar when full screen goes on. #7023 inverts the mapping in the wrapper and updates that caller and both test suites, and it is marked to close this issue. It is being reviewed as its own item; #9102 and #9455, which made the same fix, were closed in its favour.
This diagnosis was checked against the source by Codex at medium effort, which reached the same mechanism and raised the full-screen caller; no reproduction was run for the issue itself, since #7023's review covers that. Waiting on the maintainer's decision on #7023.