Change display arrangement in OS X/macOS programmatically
Sorry for the late answer. You can use displayplacer to set profiles for both of your arrangements. Save the profiles in a script or use something like BetterTouchTool for a hotkey to change your monitor layout.

https://github.com/jakehilborn/displayplacer