configfiles/tablet/.config/scripts/tabletmode.sh
2015-10-08 10:31:53 +02:00

19 lines
398 B
Bash
Executable file

#!/bin/bash
cd $(dirname $0)
INTERN="LVDS1"
IDS=$(./wacomdevices.sh)
if [ "$1" == "on" ]; then
#xrandr --output $INTERN --rotate left
xrandr --output $INTERN --rotate inverted
for i in $IDS; do xsetwacom set $i Rotate half; done
else
#xrandr --output $INTERN --rotate left
xrandr --output $INTERN --rotate normal
for i in $IDS; do xsetwacom set $i Rotate none; done
fi