Quick dual head setup

Mostly a note to self. A quick way to setup dual screens without messing with the xorg.conf is to run

xrandr -q

to see any info you need regarding the devices and their specifications and then issue

xrandr --output VGA1 --right-of LVDS1 --auto

(Orientation options: right, left, above or below) It works perfectly even if both screens have different resolutions. For this screen all i do is add these two lines in my .xinitrc

xrandr --output VGA1 --off
xrandr --output LVDS1 --mode 1280x800 --output VGA1 --mode 1024x768 --right-of LVDS1 --auto