Hacker News new | ask | show | jobs
by weitzj 496 days ago
Would you mind Sharing your hammerspoon Config? Are you tiling your windows similar to i3 or sway?
2 comments

Found a config that seems much cleaner than my lua mess and at a glance it has the key tiling functions[1]. Check set-window-fraction function and its callsites.

[1]: https://github.com/kbd/setup/blob/main/HOME/.hammerspoon/ini...

Thank You. Nice. Fennel lang
Sure. Should be able to extract the relevant bits tomorrow.

I tried some tiling WMs on MacOS(Amethyst?), but they never truly felt like tiling WMs on Linux. I could never reliably switch focus where I wanted it to go. This is not to disparage those projects; my config works well enough and I may not had given them a proper chance.

My tiling is manual and closer to Windows snap feature mixed with Power Toys zones.

Fwiw I'm somewhat happy combining AutoRaise for focus-follows-mouse and rectangle for tiling.

It's not as good as a dedicated tiling wm on Linux - but it's less terrible than MacOs' mouse/touchpad chauvinism.

https://github.com/sbmpost/AutoRaise

https://github.com/rxhanson/Rectangle

On Linux I often use mouse follows focus. I switch to a webbrowser and have a reasonable guess where the cursor is. IIRC that was a pain with Amethyst and my hammerspoon config. Have you set up something like this?
No, I've not found anything that gives workable mouse follow focus. But I've not looked very hard.
I am finally settled on aerospace.app which is close enough to i3 for me. Now hammerspoon for some Automation :)