Change display arrangement in OS X/macOS programmatically I periodically have to move my display around (physically1) and this requires also rearranging my display arrangement in System Preferences.  Manually doing this all the time is a pain in the neck.  Is there any way to do it programmatically?



1 I work on one side of a table when I'm working solo, but when I want to pair with someone I flip to the other side of the table because it has more unused space available for a second person.  Flipping the display around to face the other side of the table means the display goes from being to the right of my laptop to being to the left, since the laptop goes on a stand either way.
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