Automation

a-bar can be automated via AppleScript from the command line.

Refresh yabai data #

osascript -e 'tell application "a-bar" to refresh "yabai"'

Profiles #

osascript -e 'tell application "a-bar" to switch to profile "Work"'
osascript -e 'tell application "a-bar" to get profile'
osascript -e 'tell application "a-bar" to list profiles'

Custom widgets #

osascript -e 'tell application "a-bar" to refresh "My Widget"'
osascript -e 'tell application "a-bar" to toggle "My Widget"'
osascript -e 'tell application "a-bar" to hide "My Widget"'
osascript -e 'tell application "a-bar" to show "My Widget"'
Something is wrong in this documentation? Please open an issue on GitHub in a-bar repo.
Toggle documentation menu