Here are the scripts I use for switching between various multi-monitor setups, with tweaks from Allon