Please be sure to use the correct identifier(s), as "VGA1" might not be the Laptops screen (many options: LVDS, VGA-0, etc.).
To find out what displays "RandR" is aware off, just run xrandr without any command-line parameters:
Once you have the correct identifiers, start playing around:
Code:
xrandr --output VGA-1 --off # will turn the screen with identifier VGA-1 off
xrandr --output VGA-0 --primary --output VGA-1 --right-of VGA-0 # will set VGA-1 to appear right of VGA-0 (and make VGA-0 the primary display)
Xrandr can be called from within a script or just via the console/terminal/etc.
Also note, that xrandr-settings are not permanent, so after the next reboot you will have to set your desired setup again.
PS: For fine-tuning the second monitors position in relation to the first screen, one can use "--pos" to position the screens relative to each other with pixel-accuracy.
(This might come handy when the screens have different heights.)