#!/bin/sh

if [ "$1" == "zoom" ]; then
	if [ "$2" == "on" ]; then
		xrandr --output LVDS --mode 800x600
		if [ $( xrandr | grep 'x.*\*' | wc -l ) -gt 1 ] ; then
			xrandr --output VGA --mode 800x600
		fi
	else
		xrandr --output LVDS --mode 1024x768
		if [ $( xrandr | grep 'x.*\*' | wc -l ) -gt 1 ] ; then
			xrandr --output VGA --mode 1024x768
		fi
	fi
fi
