14 ms·
AnyBar: OS X menubar status indicator
- out_of_protocol 10y agoBitbar feels much better imo and allowing not just dots - any stuff https://github.com/matryer/bitbar https://github.com/matryer/bitbar
- atomical 10y agoI can't access the plugins on their main page. When I click nothing happens.
- jeremyirony 10y agoLooks like the plugins-page is actually the main page. You can choose some category from the list on the left.
- mwagstaff 10y ago+1 for Bitbar. Great tool, capable of displaying any console output in your menubar, so really easy to script in any language.
- flashman 10y agoMy BitBar script to display my current free drive space: #!/bin/bash df -h | awk '{print $4}' | head -n2 | tail -n1 (There has to be a neater way to do this...)
- astrostl 10y agoBitbar rules. Currently use it to monitor CloudFormation runs on Amazon Web Services, and active turns on two different play-by-web board game sites.
- NickBusey 10y agoI'll be that guy on this thread that points out Hammerspoon. It's an OS X automation tool that replaces pretty much every OS X 'tweak' style application out there. http://www.hammerspoon.org/go/#simplemenubar http://www.hammerspoon.org/go/#simplemenubar I think it's the best of these type of projects, and would love to see more people using it / developing and sharing scripts.
- notyourwork 10y agoThis looks really flexible, thanks for sharing.
- sooheon 10y agoCare to share your implementation of your favorite feature? I'm finding it hard to picture what the workflow/result will be like.
- NickBusey 10y agoWell for one I do use the Caffeine feature that is shown in the section of the Getting Started guide I linked to. That replaced the actual Caffeine app. I have a timer running reminding me to take breaks every so often, that replaced Time Out. I have it auto-detect when I plug into my keyboard at home, and when I do it turns on my bluetooth to pair with my mouse, when I unplug, it turns off the bluetooth. This prevents the annoying issue of my mouse constantly connecting/disconnecting when I'm using my computer in a different room. I have it watching wifi events and automatically setting my volume to 0 when I leave my home wifi network, to prevent any accidental sound blares when I open my laptop in a meeting. Finally I have it bound to some custom hot keys to move/resize my windows around my external monitors. That function replaces the zillion window management apps out there.
- prashnts 10y ago> bound to some custom hot keys to move/resize my windows around my external monitors iTerm2's hotkey is pretty terrible in my opinion. I've bound this function to make it work for me: function iTermHotkeyHandler() local iterm = hs.application.get('iTerm2') if (iterm) then local window = iterm:mainWindow() if not window then if iterm:selectMenuItem('New Window') then window = iterm:mainWindow() end return end if iterm:isFrontmost() then iterm:hide() else window:focus() end end end hs.hotkey.bind('cmd', 'space', iTermHotkeyHandler) *me: I really should put these in some gist somewhere.
- dopeboy 10y agoIs there anything similar for Linux? Closest I can find is https://github.com/abgoyal/ShellToolsApplet https://github.com/abgoyal/ShellToolsApplet
- Cyclenerd 10y agoFor Unity: https://github.com/limpbrains/somebar https://github.com/limpbrains/somebar
- vanous 10y agoI have been using this one: https://extensions.gnome.org/extension/437/mylauncher/ https://extensions.gnome.org/extension/437/mylauncher/
- erelde 10y agoThis https://github.com/LemonBoy/bar https://github.com/LemonBoy/bar and a few hundreds of its clone and frameworks. I recommand getting the polybar clone by jaagr https://github.com/jaagr/polybar https://github.com/jaagr/polybar
- herewulf 10y agoThere's lots of these due to the plethora of minimalist tiling window managers demanding simple, scriptable info displays. I use dzen2: https://github.com/robm/dzen https://github.com/robm/dzen Xmobar is another popular one: http://projects.haskell.org/xmobar http://projects.haskell.org/xmobar
- rrggrr 10y agoThank you for this! Simple and small. I use bitbar and like it very much, but this is a nice add on. I'm all in. Keep developing.
- niklasber 10y agoI created a fork of AnyBar with added support for specifying an icon id for any icon from icons8.com and the status icon will change to it. https://github.com/niklasberglund/AnyBar-icons https://github.com/niklasberglund/AnyBar-icons Just now quickly whipped it together. Needs improvement(error handling and asynchronous downloading) and packages. HN submission: https://news.ycombinator.com/item?id=13051347 https://news.ycombinator.com/item?id=13051347
- fideloper 10y agoMy absolute favorite part of this is exposing controls as a localhost tcp listener, making it easy to control from any tool.
- toomim 10y agoAnd -- incidentally -- any other computer on your network. But hey, security schemurity.
- CSDude 10y agoListening on 127.0.0.1 will not make it available it in the network.
- deathanatos 10y agoThis app is not listening on 127.0.0.1 — it binds to all interfaces (and on both IPv4 and IPv6 too), and the parent's comment is completely valid. Anyone who can get a UDP packet to your machine can control this. AnyBar 32770 --- 14u IPv4 0x---------------- 0t0 UDP *:1738 AnyBar 32770 --- 15u IPv6 0x---------------- 0t0 UDP *:1738 (The `nc` command in the example is directed at localhost, but that doesn't imply that the app is bound to localhost only, just that it's bound to at least that.) Unix sockets are a better fit for this sort of thing, as they can be by default restricted to your user, and optionally opened up to others. (i.e., Unix sockets are authenticated) You can always do both (implement Unix sockets and Internet sockets). Even binding to localhost in general is not completely safe, if a webpage or other apps can be fooled into making the right request. (I think UDP is safe here, but who knows.)
- pantulis 10y agoI woulde like to point out the awesome PowerPro for Windows, something like an Swiss army knife of desktop automation in Windows --that seems to be under active development: http://powerpro.cresadu.com/xfeatures.htm http://powerpro.cresadu.com/xfeatures.htm
- josephcooney 10y agoNever was the cultural differences between the windows and OSX platforms more striking than when looking at the PowerPro page http://powerpro.cresadu.com/xfeatures.htm http://powerpro.cresadu.com/xfeatures.htm and the HammerSpoon page http://www.hammerspoon.org/ http://www.hammerspoon.org/
- laurent123456 10y agoWell the PowerPro website was done nearly 20 years ago, while the HammerSpoon one two years ago, so that's mostly where the difference comes from. Also it seems the PowerPro website makes more sense if viewed on a good old 1024x768 resolution.
- pantulis 10y agoThis. PowerPro is an amazing tool, although somewhat esoteric. What surprises me is that successive Windows releases have not ended making the development impossible. I submitted a pair of plugins more than 10 years ago. I've been surprised to see development is still active, and for what I understand is pretty equivalent to Hammerspoon, including window management, shortcuts, menubars & desktop scripting support.
- ksk 10y agoHow did you come to the conclusion that one website represents an entire culture of millions of developers?
- tiku 10y agoI like Bitbar more. It gives you direct text output in the bar, and extra lines when clicked..
- orion138 10y agoThis looks super handy for having a simple status! Out of curiosity, anyone know what the hammer and sickle icon is for in the screenshot? *edit for grammar
- tonsky 10y agoIt’s a keyboard layout indicator (RU/EN). I’m using non-standard layout http://ilyabirman.ru/projects/typography-layout/ http://ilyabirman.ru/projects/typography-layout/
- FullyFunctional 10y agoThis is neat, but the complete lack of access control (UDP) just doesn't seem prudent in 2016.
- josho 10y agoI assume it binds to the loop back interface so that other hosts can't send messages. Regardless UDP interface does seem odd for this sort of tool. Edit: nope. It listens on all interfaces. At least an attack can only maliciously change your menubar colour.
- cyphar 10y agoI just started reading the code. I don't write Objective-C, but it looks to me as though it will have some vulnerabilities with how it opens images for the dots (but maybe its some sort of resource opening thing that doesn't have the usual path escape vulnerabilities).
- scott_karana 10y agoWell, assuming the syntax for calling local files isn't breakable by using "../square" to open executables with JPEG extensions too... ;)
- tonsky 10y agoI think you shouldn’t open random UDP ports to outside world in the first place
- psychometry 10y agoDoes anyone think this could be used to query the desktop Slack app to mirror the information in the dock icon, i.e. "no messages", "messages", "direct messages"?
- elsen 10y agoUnread status is managed remotely (sync'd between devices), so you should be able to query it with an API like https://api.slack.com/methods/channels.history https://api.slack.com/methods/channels.history I wouldn't want such a distraction on screen at all time though.
- donatj 10y agoI'm curious why UDP and not just a small HTTP server? Honestly the overhead is tiny particularly in this use case.
- tonsky 10y agoI believe it’s still easier to write a string to a socket than do a full-blown HTTP request. It was designed to be accessible from _anywhere_: bash scripts, build tools plugins, etc. To me single UDP packed seemed like a lowest common denominator
- aaron-santos 10y agoGreat single-purpose tool that does exactly what it advertises. I found AnyBar when searching for a programable menubar indicator. I use it at the end of a particle.io -> ifttt -> node/express/socket.io -> go-lang middleware -> AnyBar pipeline so I don't have to get up to check the only single occupancy restroom at the office.