]> git.parisson.com Git - telecaster-cgi.git/commitdiff
add rotate_desktop script
authoryomguy <yomguy@parisson.com>
Tue, 23 Nov 2010 18:42:56 +0000 (18:42 +0000)
committeryomguy <yomguy@parisson.com>
Tue, 23 Nov 2010 18:42:56 +0000 (18:42 +0000)
conf/home/bin/rotate_desktop [new file with mode: 0755]

diff --git a/conf/home/bin/rotate_desktop b/conf/home/bin/rotate_desktop
new file mode 100755 (executable)
index 0000000..3e6abf8
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+xrandrout="$(xrandr)"
+
+case $xrandrout in
+ *1024x600+0+0\ inverted\ \(* ) rotate=0; invert=0;;
+ *1024x600+0+0\ \(* ) rotate=2; invert=1;;
+esac
+
+xrandr -o $rotate
+xinput --set-prop 11 "Evdev Axis Inversion" $invert, $invert
+