From: yomguy <> Date: Tue, 23 Nov 2010 18:42:56 +0000 (+0000) Subject: add rotate_desktop script X-Git-Tag: 0.9~166 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2e72ab892b2131689287aec8298c0c25ea5af426;p=telecaster-client.git add rotate_desktop script --- diff --git a/conf/home/bin/rotate_desktop b/conf/home/bin/rotate_desktop new file mode 100755 index 0000000..3e6abf8 --- /dev/null +++ b/conf/home/bin/rotate_desktop @@ -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 +