#!/bin/bash

# blob:summary=Toggle bar visibility without killing the Blob shell
# blob:args=[toggle|on|off]
# blob:examples=blob toggle bar | blob toggle bar off | blob toggle bar on

blob-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.
blob-shell -q blob.bar syncHidden
