Change primary monitor in Ubuntu

How to move the panels in Ubuntu to the other screen

[2011-04-06]

Until Ubuntu Brainstorm idea #17526: "Allow to set primary display in Monitor Resolution Settings" becomes a reality, frozenfyer on Ubuntu Forums tells us, simply and elegantly, how to do it.

In short, find out the name of the screen you want to use as your primary display:

$ xrandr --prop

The name will look something like "VGA-1" or "DVI-I-1". And then use that name in the following command to change the primary display:

$ xrandr --output DVI-I-1 --primary

Thanks frozenfyer, and the 80 other people so far who have voted for idea #17526.