Technology moves fast! ⚡ Don't get left behind.🚶 Subscribe to our mailing list to keep up with latest and greatest in open source projects! 🏆


Subscribe to our mailing list

AnyBar

OS X menubar status indicator

Subscribe to updates I use AnyBar


Statistics on AnyBar

Number of watchers on Github 109
Number of open issues 0
Main language Objective-C
Open pull requests 1+
Closed pull requests 0+
Last commit over 4 years ago
Repo Created over 4 years ago
Repo Last Updated over 1 year ago
Size 825 KB
Organization / Authorttscoff
Contributors9
Page Updated
Do you use AnyBar? Leave a review!
View AnyBar activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating AnyBar for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

AnyBar+text: OS X menubar status indicator

This project is forked from https://github.com/tonsky/AnyBar. Modifications by Brett Terpstra, the original author bears no responsibility for problems I cause.

AnyBar is a small indicator for your menubar that does one simple thing: it displays color dot. What color means is up to you. When to change color is also up to you.

Modifications in this fork:

This fork allows a few customizations, including the ability to set text and hide the colored status indicator.

  1. You can send a string to the UDP port that will set text to the right of the menu item.

    echo -n "red This is the text" | /usr/bin/nc -4u -w0 localhost 1738
    
- if the first word of the string is a recognized color name, it will set the indicator color. f there is no color name provided, the color will not be changed
- The remainder of the string will be used to alter the text in the menu bar
  1. You can use none as the color name to remove the indicator
  2. The AppleScript dictionary has a new command for setting text

    tell application "AnyBar" to set title to "This is the text"
    

Download

Version 0.1.3 + text:

Usage

AnyBar is controlled via UDP port (1738 by default). Send it a message and it will change a color:

echo -n "black" | nc -4u -w0 localhost 1738

Following commands change color:

white
red
orange
yellow
green
cyan
blue
purple
black
question
exclamation

And one special command forces AnyBar to quit: quit

Alternative clients

Bash alias:

$ function anybar { echo -n $1 | nc -4u -w0 localhost ${2:-1738}; }

$ anybar red
$ anybar green 1739

Go:

Node:

PHP:

Java:

Python:

Ruby:

AppleScript:

tell application "AnyBar" to set image name to "blue"

tell application "AnyBar" to set current to get image name as Unicode text
display notification current

Integrations

Running multiple instances

You can run several instances of AnyBar as long as they listen on different ports. Use ANYBAR_PORT environment variable to change port and open -n to run several instances:

ANYBAR_PORT=1738 open -n ./AnyBar.app
ANYBAR_PORT=1739 open -n ./AnyBar.app
ANYBAR_PORT=1740 open -n ./AnyBar.app

Custom images

AnyBar can use user-local images if you put them under ~/.AnyBar. E.g. if you have ~/.AnyBar/square@2x.png present, send square to 1738 and it will be displayed. Images should be 1919px (or twice that for retina).

Ports

Changelog

0.1.3

0.1.2

  • Dark mode support. In dark mode AnyBar will first check for <image>_alt@2x.png or <image>_alt.png image first, then falls back to <image>.png
  • Support for Mavericks actually works

0.1.1

License

Copyright 2015 Nikita Prokopov

Licensed under Eclipse Public License (see LICENSE).

AnyBar open pull requests (View All Pulls)
  • Allow setting a single word
AnyBar list of languages used
Other projects in Objective-C