I'm working on a similar app that completely automates context switching without any manual setup, based on an idea i had five years ago.
Now to release that beta...
[0]: https://cleave.app