Anyways! Put this in a file blah.sh anywhere, and do whatever you want with it! I pinned it to the taskbar thingy in Ubuntu:
Code: Select all
#!/bin/sh
# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation.
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
# Using current screen orientation proceed to rotate screen and input tools.
case "$rotation" in
normal)
# rotate to the left
xrandr -o left
xsetwacom set "Wacom ISDv4 E6 Pen stylus" rotate ccw
xsetwacom set "Wacom ISDv4 E6 Finger touch" rotate ccw
xsetwacom set "Wacom ISDv4 E6 Pen eraser" rotate ccw
;;
left)
# rotate to normal
xrandr -o normal
xsetwacom set "Wacom ISDv4 E6 Pen stylus" rotate none
xsetwacom set "Wacom ISDv4 E6 Finger touch" rotate none
xsetwacom set "Wacom ISDv4 E6 Pen eraser" rotate none
;;
esac
http://itshouldbeuseful.wordpress.com/2 ... ntu-11-04/
Good luck! Hope this helped someone... I didn't look to see if something like this had been posted before. If anyone can get it to run when you press the dedicated rotate button, please let me know!
My Unity screenshot: http://lookpic.com/O/i2/956/Zf0xHxN.png
SVG rotate icon: http://www.clker.com/clipart-rotate-ccw-icon.html
EDIT:: Check out this Github installation using this script and some other cool things made by "the undecided":
https://github.com/martin-ueding/think-rotate