aboutsummaryrefslogtreecommitdiff
path: root/bin/rot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rot')
-rwxr-xr-xbin/rot48
1 files changed, 0 insertions, 48 deletions
diff --git a/bin/rot b/bin/rot
deleted file mode 100755
index 121471d..0000000
--- a/bin/rot
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-set -x
-
-IFS="
-"
-
-devices="$(xinput list --name-only | grep Wacom)"
-
-setTransform() {
- for d in $devices ; do
- xinput set-prop "$d" --type=float \
- "Coordinate Transformation Matrix" \
- "$@"
- done
-}
-
-while [ $# -gt 0 ] ; do case $1 in
- left)
- setTransform \
- 0 -1 1 1 0 0 0 0 1
- xrandr -o left
- shift
- ;;
- right)
- setTransform \
- 0 1 0 -1 0 1 0 0 1
- xrandr -o right
- shift
- ;;
- normal)
- setTransform \
- 0 0 0 0 0 0 0 0 0
- xrandr -o normal
- shift
- ;;
- inverted)
- setTransform \
- -1 0 1 0 -1 1 0 0 1
- xrandr -o inverted
- shift
- ;;
- *)
- echo Unknown option "$1";
- shift
- exit 1
- ;;
-esac ; done
-