After referencing this site:
https://joshuawoehlke.com/wacom-intuos-and-xsetwacom-on-ubuntu-18-04/
and experimenting a bit, I came up with a series of commands that achieves the above. First run:
xsetwacom --list devices
you will get output like this:
Wacom One by Wacom M Pen stylus id: 15 type: STYLUS
Wacom One by Wacom M Pen eraser id: 16 type: ERASER
What you need for the next commands is the id
of the STYLUS
, so for example 15
with my device. Then run:
xsetwacom --get 15 area
This gives the default area of the tablet (not the screen). For example with my device which is a One by Wacom Medium Graphics Drawing Tablet
https://www.amazon.com/Wacom-Graphic-Drawing-Tablet-Beginners/dp/B07XW9WW98/ref=sr_1_3?crid=1TB1W3GYLGY6V&keywords=wacom%2Btablet&qid=1693168855&sprefix=%2Caps%2C255&sr=8-3&th=1 I get this output:
0 0 21600 13500
So now you will have to make these numbers bigger (not smaller) to make all of the tablet map to only a portion of the screen. You can do math calculations or use trial and error. For my particular device and looking to draw only to the Jamboard drawable area in the image in the question, this command works perfectly:
xsetwacom --set 15 area -2450 -150 24800 16750
I'm using the left-handed Wacom tablet setting in Ubuntu so for me the numbers were backward which made it a bit more confusing, but with a few minutes and trial and error you can work it out. Clearly in your case you will need to experiment to find your own numbers for your device and desired screen area.