• Stars
    star
    5,877
  • Rank 6,885 (Top 0.2 %)
  • Language
    Objective-C
  • License
    Eclipse Public Li...
  • Created over 9 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OS X menubar status indicator

AnyBar: OS X menubar status indicator

AnyBar is a small indicator for your menubar that does one simple thing: it displays a colored dot. What the dot means and when to change it is up to you.

Download

Version 0.2.3:

Or using Homebrew Cask:

brew install --cask anybar

Support us

Usage

AnyBar is controlled via a UDP port (1738 by default). Before any commands can be sent, AnyBar.app must be launched:

open -a AnyBar

Once launched, you may send it a message to change the style of the dot:

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

If you use bash, you might prefer this instead:

bash -c 'echo -n "black" > /dev/udp/localhost/1738'

The following default commands change the style of the dot:

Command Preview
white
red
orange
yellow
green
cyan
blue
purple
black
question
exclamation
filled
hollow

black and white always has black or white fill. On Big Sur, where text color of menubar might change depending on the wallpaper, you might want to use filled and hollow instead. They are inverted when menubar changes its appearance.

To quit, send quit.

Alternative clients

Bash alias:

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

$ anybar red
$ anybar green 1739

Or with /dev/udp:

function anybar { echo -n $1 > /dev/udp/localhost/${2:-1738}; }

Zsh with completion:

Fish shell with completion:

Go:

Node:

Deno:

PHP:

Java:

Python:

Ruby:

Rust:

Nim:

Erlang:

C:

C#:

Crystal:

Emacs:

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

Alfred:

Integrations

Running multiple instances

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

ANYBAR_PORT=1738 open -na AnyBar
ANYBAR_PORT=1739 open -na AnyBar
ANYBAR_PORT=1740 open -na AnyBar

Environment variables to specify a title and the initial color of the dot

A title can be set to distinguish dots in the menubar:

ANYBAR_PORT=1738 ANYBAR_TITLE=First  open -na AnyBar
ANYBAR_PORT=1739 ANYBAR_TITLE=Second open -na AnyBar
ANYBAR_PORT=1740 ANYBAR_TITLE=Third  open -na AnyBar

And the initial color of the dot can also be set:

ANYBAR_INIT=blue open -na AnyBar

Custom images

AnyBar can detect and use local custom images stored in the ~/.AnyBar directory. For example, if you have a ~/.AnyBar/[email protected] image, send square to port 1738 and it will be displayed. Images should be 19×19 pixels for standard resolution, and 38x38 pixels for retina (@2x).

Ports

License

Copyright © 2015 Nikita Prokopov

Licensed under Eclipse Public License (see LICENSE).

More Repositories

1

FiraCode

Free monospaced font with programming ligatures
Clojure
75,408
star
2

datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
Clojure
5,446
star
3

rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript
HTML
1,791
star
4

vscode-theme-alabaster

A light theme for Visual Studio Code
Clojure
393
star
5

Clojure-Sublimed

Clojure support for Sublime Text 4
Clojure
353
star
6

tongue

Do-it-yourself i18n library for Clojure/Script
Clojure
306
star
7

Universal-Layout

Пакет из английской и русской раскладок, спроектированных для удобного совместного использования
Shell
300
star
8

uberdeps

Uberjar builder for deps.edn
Clojure
300
star
9

font-writer

Monospaced font for long-form writing
253
star
10

sublime-scheme-alabaster

Minimalist color scheme for Sublime Text 3
243
star
11

datascript-chat

Sample SPA using DataScript and core.async
Clojure
160
star
12

clj-reload

Smarter way to reload Clojure code
Clojure
149
star
13

grumpy

Minimalistic blog engine
Clojure
141
star
14

compact-uuids

Compact 26-char URL-safe representation of UUIDs
Clojure
129
star
15

net.async

Network commucations with clojure.core.async interface
Clojure
124
star
16

sublime-scheme-writer

A color scheme for focused long-form writing
122
star
17

clojure-future-spec

A backport of clojure.spec for Clojure 1.8
Clojure
115
star
18

intellij-alabaster

Alabaster color scheme for IntelliJ IDEA
101
star
19

datascript-transit

Transit handlers for DataScript database and datoms
Clojure
100
star
20

sublime-profiles

Profile Switcher for Sublime Text
Python
83
star
21

datascript-todo

DataScript ToDo Sample Application
Clojure
78
star
22

persistent-sorted-set

Fast B-tree based persistent sorted set for Clojure/Script
Clojure
78
star
23

tonsky.github.io

HTML
65
star
24

clojure-warrior

Visual Studio Code extension for Clojure development
TypeScript
57
star
25

cljs-drag-n-drop

Sane wrapper around Drag-n-Drop DOM API
Clojure
55
star
26

clj-simple-router

Simple order-independent Ring router
Clojure
53
star
27

vec

React.js + Immutable.js vector editor
JavaScript
51
star
28

clojure.unicode

Unicode symbols for Clojure
Clojure
49
star
29

41-socks

Simple match game in cljs+om+react
Clojure
37
star
30

remote-require

Require any Clojure snippet from anywhere in the Internet
Clojure
33
star
31

Sublime-Executor

Run any executable from your working dir in Sublime Text
Python
32
star
32

sane-math

Clojure/Script library for infix (normal) math expressions
Clojure
32
star
33

Heroes

A turn-based tactical game in ClojureScript, DataScript and Rum
Clojure
30
star
34

cljs-skeleton

Skeleton CLJS client/server app with WS, Transit, Rum
Clojure
30
star
35

icfpc2019-rust

Re-implementaion of https://github.com/tonsky/icfpc2019 in Rust to compare performance
Rust
29
star
36

alabaster-lighttable-skin

Light skin & theme for LightTable
CSS
27
star
37

openshift-clojure

Clojure/lein openshift cartridge template
Shell
26
star
38

datascript-storage-sql

SQL Storage implementation for DataScript
Clojure
24
star
39

sublime-scheme-commander

Retro color scheme for Sublime Text
23
star
40

Levinson-Layout

Keymap & EN/RU layouts for Levinson 40% split ortholinear keyboard
C
22
star
41

sublime-clojure-repl

Basic Clojure REPL for Sublime Text
Python
21
star
42

extend-clj

Easily extend clojure.core built-in protocols
Clojure
18
star
43

boot-anybar

A boot task reporting build status to AnyBar
Clojure
18
star
44

down-the-rabbit-hole

Entry to Ludum Dare 48
Clojure
16
star
45

bloknote

Fast online notepad
Clojure
16
star
46

sublime-color-schemes

Fun and simple color schemes for Sublime Text
Rust
15
star
47

katybot

Campfire bot written in Clojure
Clojure
14
star
48

toml-clj

Fast TOML parser for Clojure
Java
14
star
49

java-graphics-benchmark

Java Graphics benchmark
Java
13
star
50

Helix-Layout

C
13
star
51

datascript-menu

JavaScript
11
star
52

DarkModeToggle

Statusbar app to quickly toggle between light and dark modes
Swift
11
star
53

tonsky.me

Clojure
11
star
54

icfpc2021

Clojure
11
star
55

humble-ants

Clojure
10
star
56

advent-of-code

https://adventofcode.com/
Clojure
9
star
57

icfpc2019

Clojure
8
star
58

tgadmin

Clojure
7
star
59

jwm

Objective-C++
6
star
60

homm

Clojure
5
star
61

GMTKJam2022

GDScript
5
star
62

advent2018

Solutions to https://adventofcode.com/2018 in Clojure
Clojure
5
star
63

spectre

Fantom
3
star
64

imdbparse

Parser for IMDb text database
Clojure
3
star
65

icfpc2022

Clojure
3
star
66

clojure-bits

Clojure
3
star
67

tonsky

2
star
68

2017-05-RigaDevDays

JavaScript
2
star
69

clojure-bits-server

Clojure
2
star
70

2017-10-Reactive

JavaScript
2
star
71

lein-figwheel-immutant

[tonsky/figwheel-sidecar-immutant "0.5.9"]
Clojure
2
star
72

2018-05-UWDC

http://tonsky.me/2018-05-UWDC/slides/
JavaScript
2
star
73

codingame-fall-2022

Coding Games Fall Challenge 2022
Clojure
2
star
74

datascript-perf

Datasets for DataScript perf testing
Clojure
2
star
75

grumpy_video

1
star
76

icfpc2023

Clojure
1
star
77

roam-calculator

Shell
1
star
78

datascript_compiler_race

Clojure
1
star
79

ldjam53

GDScript
1
star
80

glutin_resize_issue

Rust
1
star