I'd like to connect my Macbook Pro to an external monitor that splits the screen like this:
But when it's not connecting to an external monitor, it goes back to having a single program take up the entire screen.
Is there any app or setting that can automate this, so I don't have to spend 10 minutes configuring the windows every time I connect the external monitor?

But when it's not connecting to an external monitor, it goes back to having a single program take up the entire screen.
Is there any app or setting that can automate this, so I don't have to spend 10 minutes configuring the windows every time I connect the external monitor?