Created
September 23, 2018 20:03
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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