Skip to content

Instantly share code, notes, and snippets.

@epequeno
Created September 23, 2018 20:03
Show Gist options
  • Save epequeno/99a3018c28f013fd2fe235e7c67cc390 to your computer and use it in GitHub Desktop.
Save epequeno/99a3018c28f013fd2fe235e7c67cc390 to your computer and use it in GitHub Desktop.
xrandr and xsetwacom commands to configure Wacom Cintiq Pro 13 for linux 4.18
#!/bin/bash
# rotate tablet display clockwise
#xrandr --output HDMI-1 --rotate right
# find stylus ID number
STYLUS=$(xsetwacom list devices | grep -i stylus | awk '{print $(NF-2)}')
ERASER=$(xsetwacom list devices | grep -i eraser | awk '{print $(NF-2)}')
# map wacom inputs to display
#xsetwacom set $STYLUS MapToOutput HDMI-1
#xsetwacom set $ERASER MapToOutput HDMI-1
# make sure the wacom inputs match the display rotation (clockwise)
#xsetwacom set $STYLUS Rotate cw
#xsetwacom set $ERASER Rotate cw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment