Status bar command-line tool
Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ScriptableStatusBar.xcodeproj
ScriptableStatusBar
ScriptableStatusBarTests
sbar
README.md

README.md

ScriptableStatusBar

A tool for adding, setting, and removing status bar items (with menus!) from the command line.

Usage

sbar set <id> <string> [menu-item-title:bash-command] [...]
sbar remove <id>

so

sbar set face 😃 'Bye!:sbar remove face'

Creates a face in the status bar. The menu will have an option Bye! that runs sbar remove face getting rid of the menu it creates.

Also, if you leave out bash-command and the : separator:

sbar set face 😃 'this is disabled'

the menu item will appear disabled. You can still make an enabled item that does nothing by leaving the separator at the end of the argument.