on hides the bar and off shows it, matching the literal flag name rather than an inferred "bar visibility on" reading. The behavior is correct and depended on by omarchy-toggle-fullscreen-desktop; this just makes the --help summary say so. Claude-Session: https://claude.ai/code/session_01YQK8wd7WU8qEVnXVnNmcSW Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
14 lines
582 B
Bash
Executable File
14 lines
582 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Toggle bar visibility without killing the Omarchy shell (on hides the bar, off shows it)
|
|
# omarchy:args=[toggle|on|off]
|
|
# omarchy:examples=omarchy toggle bar | omarchy toggle bar off | omarchy toggle bar on
|
|
|
|
omarchy-toggle bar-off "${1:-toggle}"
|
|
|
|
# The shell's watch on the toggles directory can miss flag changes that land in
|
|
# quick succession, stranding the bar off screen until the shell restarts.
|
|
# Nudge the bar to re-read the flag; quiet best-effort so the toggle still
|
|
# works when the shell is not up.
|
|
omarchy-shell -q omarchy.bar syncHidden
|