#!/bin/sh # From: http://teakadabench.blogspot.com/2006/11/fedora-core-6-on-toshiba-tecra-m7.html # Modified by: Casey Link http://www.binaryelysium.com orientation=`/usr/bin/xrandr --query | /bin/grep "Current rotation" | /usr/bin/awk '{print $4}'` if [ "$orientation" == "normal" ]; then /usr/bin/xrandr --orientation inverted /usr/bin/xsetwacom set stylus rotate 3 else /usr/bin/xrandr --orientation normal /usr/bin/xsetwacom set stylus rotate none fi