This script handles the rotation of the screen and all connected pointer (touchscreen, touchpad... ) devices. Tested and developed on a Microsoft surface pro with Ubuntu 14.04 LTS.