Live data from Hacker News

AnyBar: OS X menubar status indicator

github.com

51–60 of 64 posts

Re: AnyBar: OS X menubar status indicator

#51
post #22

I'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 I think it's the best of these type of projects, and would love to see more people using it / developing and sharing scripts.

Looks really interesting, thanks. Does anyone know if there is anything similar to Hammerspoon out there?

Hammerspoon is forked from mjolnir

https://github.com/sdegutis/mjolnir

Re: AnyBar: OS X menubar status indicator

#52
post #43

This is neat, but the complete lack of access control (UDP) just doesn't seem prudent in 2016.

I 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.

I 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).

Re: AnyBar: OS X menubar status indicator

#53
post #43

This is neat, but the complete lack of access control (UDP) just doesn't seem prudent in 2016.

I 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.

Well, assuming the syntax for calling local files isn't breakable by using "../square" to open executables with JPEG extensions too... ;)

Re: AnyBar: OS X menubar status indicator

#55
post #54

I'm curious why UDP and not just a small HTTP server? Honestly the overhead is tiny particularly in this use case.

I 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

Re: AnyBar: OS X menubar status indicator

#56

This 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

It’s a keyboard layout indicator (RU/EN). I’m using non-standard layout http://ilyabirman.ru/projects/typography-layout/

Re: AnyBar: OS X menubar status indicator

#57

I 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

Never 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 and the HammerSpoon page http://www.hammerspoon.org/

Well 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.

Re: AnyBar: OS X menubar status indicator

#58

Earlier quoted context omitted.

Never 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 and the HammerSpoon page http://www.hammerspoon.org/

Well 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.

This. 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.

Re: AnyBar: OS X menubar status indicator

#59

Does 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"?

Unread 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

I wouldn't want such a distraction on screen at all time though.

Re: AnyBar: OS X menubar status indicator

#60

Bitbar feels much better imo and allowing not just dots - any stuff https://github.com/matryer/bitbar

Bitbar rules. Currently use it to monitor CloudFormation runs on Amazon Web Services, and active turns on two different play-by-web board game sites.
Post reply on HN