Ubuntu Pastebin

Paste from atools at Wed, 28 Oct 2015 04:40:32 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/bash
# This script rotates the screen and touchscreen input left and input right, changing back and forth
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
case "$rotation" in
	normal)
		xrandr -o left
		xinput set-prop 'Atmel Atmel maXTouch Digitizer' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1 
	;;
	left)
		xrandr -o normal
		xinput set-prop 'Atmel Atmel maXTouch Digitizer' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
	esac
onboard &
Download as text