xsetwacom

Command-line tool to change settings for Wacom pen tablets at runtime. More information: https://manned.org/xsetwacom.

xsetwacom list

xsetwacom set "device_name" MapToOutput screen

xsetwacom set "device_name" Mode "Relative|Absolute"

xsetwacom set "device_name" Rotate none|half|cw|ccw

xsetwacom set "device_name" TabletPCButton "on"