configfiles/tablet/.config/scripts/tabletmode.sh

19 lines
398 B
Bash
Raw Normal View History

2015-05-29 21:08:06 +02:00
#!/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