Live data from Hacker News

AnyBar: OS X menubar status indicator

github.com

41–50 of 64 posts

Re: AnyBar: OS X menubar status indicator

#41

Earlier quoted context omitted.

If one likes being cheap, it's fun to mute Spotify if there's an Ad. Yeah... function muteSpotifyOnAd() if (hs.spotify.isRunning()) then if (hs.spotify.getCurrentTrack():lower() == 'spotify') then hs.spotify.setVolume(0) else hs.spotify.setVolume(100) end end end hs.timer.doEvery(10, muteSpotifyOnAd)

No thanks, one likes earning a few cents from their published music.

Spotify still gets paid by the advertiser, and so does the artist.

It’s like switching TV channels when the ad plays.

In analog media, close to no one ever listened to / watched ads, due to exactly that – many VHS recorders would even automatically skip them.

Re: AnyBar: OS X menubar status indicator

#42
post #41

Earlier quoted context omitted.

No thanks, one likes earning a few cents from their published music.

Spotify still gets paid by the advertiser, and so does the artist. It’s like switching TV channels when the ad plays. In analog media, close to no one ever listened to / watched ads, due to exactly that – many VHS recorders would even automatically skip them.

> close to no one ever listened to / watched ads

I can still sing jingles I learned from watching TV ads in the 70s.

Re: AnyBar: OS X menubar status indicator

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

Re: AnyBar: OS X menubar status indicator

#44
post #10

Earlier quoted context omitted.

Care to share your implementation of your favorite feature? I'm finding it hard to picture what the workflow/result will be like.

If one likes being cheap, it's fun to mute Spotify if there's an Ad. Yeah... function muteSpotifyOnAd() if (hs.spotify.isRunning()) then if (hs.spotify.getCurrentTrack():lower() == 'spotify') then hs.spotify.setVolume(0) else hs.spotify.setVolume(100) end end end hs.timer.doEvery(10, muteSpotifyOnAd)

Doesn't spotify pause the ad if the volume is zero? It does for me.

Re: AnyBar: OS X menubar status indicator

#45
post #31
post #30

Earlier quoted context omitted.

> Does anyone know if there is anything similar to Hammerspoon out there? Did you forget to include some extra constraint? As written, it looks like the answer to your question is "Yes, Hammerspoon."

Sorry, I realize that is unclear. What I was getting at is just if there are any other similar scripting/automation apps out there, perhaps with a different scripting language or other application integrations. I am a newbie in the automation space so I was wondering what other types of apps people may be using.

You may be interested in AppleScript or AutoHotKey.

Re: AnyBar: OS X menubar status indicator

#46
post #7

Is there anything similar for Linux? Closest I can find is https://github.com/abgoyal/ShellToolsApplet

There'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

Xmobar is another popular one: http://projects.haskell.org/xmobar

Re: AnyBar: OS X menubar status indicator

#47
post #35

Earlier quoted context omitted.

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

There is, of course. :) df -h | awk 'NR==2 {print $4}'

Thanks :)

Re: AnyBar: OS X menubar status indicator

#48
post #10

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.

Care to share your implementation of your favorite feature? I'm finding it hard to picture what the workflow/result will be like.

- A scratch pad window that appears on Hyper-S. It appends stuff to my scratch.txt.

- Hyper-1 through 5 to defer tasks in OmniFocus (calls out to an external script).

- Hyper-W to lock my screen.

- Hyper-M to mute skype microphone.

- Hyper-[C,T,X,F] to focus Chrome, TaskPaper, nvAlt and iTerm.

Re: AnyBar: OS X menubar status indicator

#49

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/
Post reply on HN