#!/bin/bash
if [ "$1" = "left" ]
then
rotate="left"
else
rotate="right"
fi


if xrandr | grep "$rotate ("

then
rotate="normal"
fi
xrandr -o "$rotate"
