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