Wanted this to exist for so long. I’ve started learning Swift to build an app to solve this. Then I discovered HammerSpoon[1] and since I use a HammerSpoon lua script to adjust the windows layout for my different setups:
1. Laptop only mode
2. At home my MacBook screen is closed and connected to 2 external monitors
3. At work my MacBook screen is open and connected to 1 external monitor
The script detects the connected screen UUID and applies the appropriate layout
The script detects the connected screen UUID and applies the appropriate layout
[1] http://www.hammerspoon.org/