#!/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