I'm using Ubuntu with two monitors, is there any way to set up a keyboard shortcut that would switch the contents of both monitors? (i.e. move every window from the first monitor to the second and every window from the second to the first).
You can move a single window from one monitor to another using the keyboard. But I don't know a way to swap all windows. Maybe a little scripting based on the Put compiz plugin that allows the keyboard shortcut.