sindresorhus / Bitbar
Programming Languages
Projects that are alternatives of or similar to Bitbar
bitbar
Simplifies BitBar app plugin creation
Create your plugin using a nice API instead of having to manually construct a big string.
Requires BitBar 1.9 or higher.

Install
$ npm install bitbar
Usage
#!/usr/bin/env /usr/local/bin/node
const bitbar = require('bitbar');
bitbar([
{
text: '❤',
color: bitbar.darkMode ? 'white' : 'red',
dropdown: false
},
bitbar.separator,
{
text: 'Unicorns',
color: '#ff79d7',
submenu: [
{
text: '📺 Video',
href: 'https://www.youtube.com/watch?v=9auOCbH5Ns4'
},
{
text: '📖 Wiki',
href: 'https://en.wikipedia.org/wiki/Unicorn'
}
]
},
bitbar.separator,
'Ponies'
]);
Create a file with the above code in the BitBar plugins directory and make sure to chmod +x filename.js
it. Read more.
Change /usr/local/bin/node
to the path of your Node.js binary. This is a known issue in BitBar.
API
bitbar(items, options?)
items
Type: Array<string | object>
An item can be a string with the text or an object with the text in a text
property and any of the options
. The text can be multiple lines, but for the first item, only the first line will be shown in the menubar.
submenu
Type: Array<string | object>
It will add a submenu to the current item. A submenu is composed of an array of items.
options
Type: object
You can use any of the supported options.
Applies to all items unless overridden in the item.
bitbar.separator
Add a separator.
bitbar.darkMode
A boolean of whether macOS Dark Mode is enabled.