SwiftBar runs executable scripts that render custom menu bar items and dropdown menus. It supports BitBar and xbar plugins plus built-in plugin browsing.
Overview
SwiftBar lets you add menu bar programs on macOS by placing executable scripts in a plugin folder. On launch it prompts for that folder, imports each file as a plugin, and refreshes them on a schedule encoded in the filename or metadata.
Plugins output structured text defining a menu bar header and dropdown body. Parameters control colors, fonts, icons, links, shell actions, shortcuts, and optional web views. SwiftBar sets environment variables with paths, versions, and macOS appearance details when running each script. Existing BitBar and xbar plugins generally work unchanged.
Plugin types include standard finite runs, Shortcuts-driven scripts, ephemeral URL-scheme items, and streamable processes for ongoing event feeds separated by special markers. A bundled repository offers one-click installs via Get Plugins, and community plugins can be sourced from the historical BitBar collection.
Distribution is via GitHub Releases or Homebrew on macOS Monterey and later. Users can reorder menu bar icons with Command-drag. Optional metadata in scripts powers About screens and cron-style refresh schedules.
Key features
- Script-based menu bar items
- BitBar and xbar compatibility
- Bundled plugin repository
- Scheduled and cron refresh
- Shortcuts and streamable plugins
- Rich text parameters and actions
- Plugin folder with ignore rules
- URL scheme ephemeral plugins
Use cases
- Show live stats in the menu bar
- Quick actions from dropdown menus
- Port existing BitBar utilities
- Build Shortcuts-powered menu items
- Monitor streams via long-running plugins