Map device to primary monitor
It is possible to list devices using xsetwacom.
$ xsetwacom --list devices
HUION Huion Tablet Pad pad id: 16 type: PAD
HUION Huion Tablet Pen stylus id: 17 type: STYLUS
The following script can be used to map the device:
$ xsetwacom set "HUION Huion Tablet Pen stylus" MapToOutput "HEAD-1"
$ xsetwacom set "HUION Huion Tablet Pad pad" MapToOutput "HEAD-1"
Set coordinates when dealing with multiple monitors:
$ xinput set-prop 'HUION Huion Tablet stylus' --type=float "Coordinate Transformation Matrix" 0.5 0 0 0 1 0 0 0 1