Hacker News new | ask | show | jobs
by acmecorps 2998 days ago
I have a 34" 1440p screen and I use Mozaic.app (https://www.lightpillar.com/mosaic.html) for managing my windows. Usually, i'll divide my windows as either 1:1, 1:2:1 or 1:4 sizes. It's pretty useful as I can use keyboard shortcuts to position my windows. Is there any added benefits that I can get by using phoenix or hammerspoon?
2 comments

As a hammerspoon user, probably not if that's all you're using it for. Hammerspoon does add a bunch of extra features mosaic doesn't add—but if you don't need them and you've already invested in software to solve your problem: not likely.
If you don't mind, what are the use cases that makes hammerspoon very useful for you?
Basically the same reason you're using mosaic + the ability to change what exactly is being done. I use it to map 'hyper'+key (where hyper is the equivalent of ctrl+cmd+shift+option and is assigned to control, capslock is assigned to the original control functionality) to move windows between screens and on their own grid. Effectively I just didn't pay for mosaic-like functionality. I have better touch tool, but I never liked having to drag to snap and had hammerspoon implemented already.
My use case is to split the screen in two, editor on one side and terminal on the other. I specifically want the terminal to be 80 characters wide (inside that window I use tmux), and the editor to take up the rest of the space.

I've tried most of the simpler, GUI-based window managers for macOS but I haven't found one that let's me set window sizes explicitly in pixels yet. With hammerspoon I figure out the width of the terminal app I want, and adjust the windows accordingly.

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.
Interesting. Yeah, I think I'm missing out but, have no idea what they are. What are the dynamic flows that might be useful?
https://github.com/fabiospampinato/phoenix/blob/master/READM...

From a user higher up in the thread. Nice example.

There’s some examples of custom configurations here: https://github.com/kasper/phoenix/wiki/.
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.