Live data from Hacker News

AnyBar: OS X menubar status indicator

github.com

11–20 of 64 posts

Re: AnyBar: OS X menubar status indicator

#11

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.

Huh, it's like someone wrote an app that's the non-WM part of Awesome WM for OSX. Never thought I'd see that.

Re: AnyBar: OS X menubar status indicator

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

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

Re: AnyBar: OS X menubar status indicator

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

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)

Re: AnyBar: OS X menubar status indicator

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

Well 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 preven…

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

Re: AnyBar: OS X menubar status indicator

#16

Earlier quoted context omitted.

Well 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 preven…

> 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 iter…

What don't you like about iTerm's show/hide function?

Re: AnyBar: OS X menubar status indicator

#17

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.

I hadn't heard of Hammerspoon before your reply, but man I'm glad you posted. This nails a need of mine and looks very useful overall. Thanks!

Re: AnyBar: OS X menubar status indicator

#18
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)

Nice one!

Re: AnyBar: OS X menubar status indicator

#19

Earlier quoted context omitted.

> 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 iter…

What don't you like about iTerm's show/hide function?

Hotkey windows do not show up in cmd+tab switcher. It's annoying if you activate the hotkey with cmd+space, press cmd+tab to go to previous window, and instinctively press cmd+tab hoping to get back to the terminal window. But that doesn't happen.

Re: AnyBar: OS X menubar status indicator

#20
I 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

Just now quickly whipped it together. Needs improvement(error handling and asynchronous downloading) and packages.

HN submission: https://news.ycombinator.com/item?id=13051347

Post reply on HN