News for hackers. Stuff that matters.
Re:macOS Tips and Tricks (2022) by theshrike79 on Friday February 28, 2025 @03:38AM (#43203229)
I just made my own window manager with Hammerspoon. First I copied whatever rectangle/magnet was doing and then added my own logic on top of it to fit the style I work with windows.

As a bonus I can hit hyper-l (L for layout) and it'll open the correct apps + place them correctly depending on where I am and how many monitors are connected.

And caps-lock is of course mapped as hyper with Karabiner Elements, it even has a preset for it.

Re:macOS Tips and Tricks (2022) by zdragnar on Friday February 28, 2025 @04:16AM (#43203495)
I did the same, though I'd modeled my setup after my prior swaywm workflow. Hammerspoon was really the only thing that made macos usable for me.
Re:macOS Tips and Tricks (2022) by n8henrie on Friday February 28, 2025 @08:02AM (#43205141)
Is your config publicly avail anywhere?

Also, I was only using Karabiner for caps remapping and was able to satisfactorily replace it with this type of built-in hidutil call: https://news.ycombinator.com/item?id=43203239 -- remaps to F19, which I use as a hyper modal in hammerspoon. Works well, and I was happy to let go of Karabiner given how deeply it has to dig into the OS, and I wasn't using any of its more powerful features anyway.