HNHacker News
TopNewBestAskShowJobs

khirviko

145 karma · joined November 28, 2015

[ my public key: https://keybase.io/khirviko; my proof: https://keybase.io/khirviko/sigs/D8MEdQwMEMHta90_M9BDvkUbF-EWfT3dy20nl7HedRI ]
submissionscomments
khirviko··on Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript
So many good options nowadays! I think a few years ago, you would only find a handful of projects focusing on similar matters.
khirviko··on Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript
Cool! Let me know what you come up with. :)
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
Hah. :)
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
You could create a shortcut that will always focus the window easily.
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
I’m really happy people are sharing these! +1
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
There’s some examples of custom configurations here: https://github.com/kasper/phoenix/wiki/.
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
Say for example you want to do something dynamically when an app launches. You could open an app and the windows would automatically be arranged across your monitors the way you want.
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
Both Phoenix and Hammerspoon are free and open-source. You can also configure them in endless ways, so either you can have a really simple setup or a very dynamic one that works just the way you like.
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
In many conceptual ways, such as sharing the same language for configuration, though this is a completely different project so they don’t share the same origin. Slate has become rather abandoned and unsupported nowadays. Phoenix hopefully continues strong in this area.
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
Yes! Though I’ve seen people extending the support in Phoenix cleverly by using the Task API. Basically you can run any external processes or scripts.
khirviko··on Show HN: Phoenix 2.6 – a macOS window and app manager scriptable with JavaScript
Hammerspoon uses Lua for the configuration language. Phoenix uses JavaScript, or anything that translates to it. Personally I think Phoenix’s API is much simpler and easier to understand, but I’m of course bias. :) Hammerspoon does have some additional features that go beyond window and app management. Phoenix doesn’t cover those.
khirviko··on Hammerspoon – Powerful automation of OS X with Lua
It’s nice we have great options to choose from. Everyone has their own preferences. :)
khirviko··on Show HN: Phoenix 2.2 – a macOS window and app manager scriptable with JavaScript
I updated the Wiki to reflect this! Thanks for the feedback.
khirviko··on Show HN: Phoenix 2.2 – a macOS window and app manager scriptable with JavaScript
Definitely, everyone has their favourites! Obviously it’s a preference whether you like Lua or not. :)
khirviko··on Show HN: Phoenix 2.2 – a macOS window and app manager scriptable with JavaScript
Hi! Fair point, unfortunately the new release has some API changes and most of the examples in the Wiki haven’t caught up yet.

I have been thinking of providing a template, but then again people have very different ideas on what they want, so it’s hard to know what the default configuration should be.

khirviko··on Show HN: Phoenix 2.2 – a macOS window and app manager scriptable with JavaScript
@lrusnac Both have similar goals. I would say the main difference is that Phoenix focuses to be lightweight, is more versatile and has a broader JavaScript API. You can also easily use CoffeeScript as the language for your configuration.
khirviko··on Show HN: Phoenix – a lightweight OS X window manager scriptable with JavaScript
Thanks! Yes, definitely! Although it’s a bit harder since the app itself doesn’t do anything. Maybe a video tutorial for new users?
khirviko··on Show HN: Phoenix – a lightweight OS X window manager scriptable with JavaScript
Hi, undoubtably true! Phoenix has been around since 2013. It has become established in the OS X window manager scene.

It’s also exceedingly hard nowadays to come up with a product name that isn’t already in use in some context. :) Especially if you want it to have a meaning in English.

khirviko··on Show HN: Phoenix – a lightweight OS X window manager scriptable with JavaScript
Ah, thanks! I’m new to HN. :)