if [ `xrandr | grep -c ' connected '` == "2" ] ; then xrandr --output LVDS-1 --mode 1280x800 --rate 75 xrandr --output VGA-1 --mode 1280x1024 --rate 75 # --left-of xrandr --output VGA-1 --right-of LVDS-1 fi