#!/bin/sh

ROTA=`xrandr | grep 'Current rotation' | sed -e 's/Current rotation\ \-\ //g'`

case "$ROTA" in
    normal)
	/etc/sysconfig/clamshell/portrait.sh
	;;
    left)
	/etc/sysconfig/clamshell/landscape.sh
	;;
    *)
	/etc/sysconfig/clamshell/landscape.sh
	;;
esac
