mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 84c0f4e219a3f1585a7f448b07dc9c587af4764e
parent 3101f4e85d05b347020cad48cb4329412ca9e12e
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed,  2 Jul 2014 12:08:36 +0200

+flip-yoga

Diffstat:
flip-yoga | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/flip-yoga b/flip-yoga @@ -0,0 +1,22 @@ +#!/bin/bash + +case $1 in +normal ) +xrandr --output LVDS1 --rotate normal +xinput set-prop 'ELAN Touchscreen' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1 +;; +inverted ) +xrandr --output LVDS1 --rotate inverted +xinput set-prop 'ELAN Touchscreen' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1 +;; +left ) +xrandr --output LVDS1 --rotate left +xinput set-prop 'ELAN Touchscreen' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1 +;; +right ) +xrandr --output LVDS1 --rotate right +xinput set-prop 'ELAN Touchscreen' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1 +;; +esac + +