Revision 71 (by dpavlin, 2008/03/15 13:28:09) script to turn VGA output on/off
#!/bin/sh

vga=`xrandr | grep ' connected ' | grep -i vga | cut -d" " -f1`
active=`xrandr | grep '*' | wc -l`

if [ $active == 2 ] ; then
	xrandr --output $vga --off
else
	xrandr --output $vga --auto
fi