All Projects → sindresorhus → Bitbar

sindresorhus / Bitbar

Licence: mit
Simplifies BitBar app plugin creation

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Bitbar

MeeInk
Material Design click effect
Stars: ✭ 33 (-88.46%)
Mutual labels:  npm-package
stimulus-rails-nested-form
A Stimulus controller to create new fields on the fly to populate your Rails relationship.
Stars: ✭ 54 (-81.12%)
Mutual labels:  npm-package
Input Range Scss
Styling Cross-Browser Compatible Range Inputs with Sass
Stars: ✭ 272 (-4.9%)
Mutual labels:  npm-package
dynamodb-parallel-scan
Scan large DynamoDB tables faster with parallelism
Stars: ✭ 21 (-92.66%)
Mutual labels:  npm-package
vue-sfc-cli
🔨A powerful tool for developing vue single-file component
Stars: ✭ 137 (-52.1%)
Mutual labels:  npm-package
Ipfs Desktop
An unobtrusive and user-friendly desktop application for IPFS on Windows, Mac and Linux.
Stars: ✭ 3,710 (+1197.2%)
Mutual labels:  menubar
ngx-smart-loader
Smart loader handler to manage loaders everywhere in Angular apps.
Stars: ✭ 28 (-90.21%)
Mutual labels:  npm-package
Class Names
Conditionally join CSS class names together - Especially useful with React
Stars: ✭ 281 (-1.75%)
Mutual labels:  npm-package
shipyard
A lightweight, CSS framework for Rails & Jekyll applications
Stars: ✭ 16 (-94.41%)
Mutual labels:  npm-package
Katana
🚀 a powerful, open-source screenshot utility for macOS
Stars: ✭ 270 (-5.59%)
Mutual labels:  menubar
node-split-file
🌱 NodeJS Module to split and merge files for several purposes like transporting over unstable networks.
Stars: ✭ 33 (-88.46%)
Mutual labels:  npm-package
josk
🏃🤖 Scheduler and manager for jobs and tasks in node.js on multi-server and clusters setup
Stars: ✭ 27 (-90.56%)
Mutual labels:  npm-package
Electron Store
Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
Stars: ✭ 3,316 (+1059.44%)
Mutual labels:  npm-package
netty-finder
☎️ This script checks a Nigerian telephone number and detects which network it belongs to.
Stars: ✭ 44 (-84.62%)
Mutual labels:  npm-package
Term Img
Display images in iTerm
Stars: ✭ 275 (-3.85%)
Mutual labels:  npm-package
Popover
Custom macOS Popover 💬
Stars: ✭ 71 (-75.17%)
Mutual labels:  menubar
Ngx Smart Modal
Modal/Dialog component crafted for Angular
Stars: ✭ 256 (-10.49%)
Mutual labels:  npm-package
Tooltip Sequence
A simple step by step tooltip helper for any site
Stars: ✭ 287 (+0.35%)
Mutual labels:  npm-package
Ha Menu
A Mac OS Menu Bar app to perform common Home Assistant functions
Stars: ✭ 280 (-2.1%)
Mutual labels:  menubar
Mockup Generator
Mockup Generator is a macOS app built with AngularJS/Electron that sits in your menu bar allowing you to capture screenshots of your favourite websites and wrap them in device mock-ups.
Stars: ✭ 272 (-4.9%)
Mutual labels:  menubar

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].