Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created November 28, 2021 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/5b5587651e256ccc0ad76bbb0bdac1d2 to your computer and use it in GitHub Desktop.
Save dance2die/5b5587651e256ccc0ad76bbb0bdac1d2 to your computer and use it in GitHub Desktop.
#https://unix.stackexchange.com/a/377601/334761
# Get the device id with "xinput"
# Look for "Wacom Intuos PT S Pen stylus"
# Get the ID value. e.g.) id=14
# pass the ID (14 for mine) as "device" in
# xinput MAN page: https://linux.die.net/man/1/xinput
xinput set-prop 14 "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
# default
dance2die@ubuntoo  ~  xinput list-props 14 | grep Matrix
Coordinate Transformation Matrix (214): -0.500000, 0.000000, 1.000000, 0.000000, -1.000000, 1.000000, 0.000000, 0.000000, 1.000000
# inverted
dance2die@ubuntoo  ~  xinput list-props 14 | grep Matrix
Coordinate Transformation Matrix (214): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment