#!/bin/bash if xrandr -q | grep -q "VGA connected" then xrandr --output LVDS --mode 1280x800 --output VGA --mode \ 1920x1200 --right-of LVDS fi