Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#!

/bin/sh # Find the line in "xrandr -q --verbose" output that contains current screen ori entation and "strip" out current orientation. rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left| inverted|right) \(' | egrep -o '(normal|left|inverted|right)')" # Using current screen orientation proceed to rotate screen and input devices. case "$rotation" in normal) # rotate to the left xrandr -o left xsetwacom set "Serial xsetwacom set "Serial ;; left) # rotate to the right xrandr -o right xsetwacom set "Serial xsetwacom set "Serial ;; right) # rotate to normal xrandr -o normal xsetwacom set "Serial xsetwacom set "Serial ;; esac

Wacom Tablet stylus" rotate ccw Wacom Tablet eraser" rotate ccw

Wacom Tablet stylus" rotate cw Wacom Tablet eraser" rotate cw

Wacom Tablet stylus" rotate none Wacom Tablet eraser" rotate none

You might also like