wacom-linux
Published on June 26, 2024
You can check out the source code for this project here: https://github.com/Shinji322/wacom-scripts !
Purpose
Wacom's official linux driver for Xorg is... functional.
However, it leaves a lot to be desired. Especially, for users of multiple monitors or so, it is a little infuriating to work with. The driver, by default, assumes that the tablet's surface area should be mapped to one contiguous area. That area is your entire display server, across all of your monitors. Realistically, though, most people would only want this to be mapped to one monitor.
With a cursory glance, this sounds fairly simple. After a little reading of the documentation, you might assume that it is simply:
xsetwacom set "$DEVICE_ID" MapToOutput "$MONITOR"
A little deeper
HOWEVER, it's not that simple! You also need to consider the aspect ratio of the tablet relative to the monitor. I conceded to simply scale the tablet size down to match the aspect ratio of the monitor. These calculates are inuitive yet a little annoying to actually compute.
Regardless, I shouldn't have to do that every single time. This script automates this process and adds some extra much needed features. It should work on any other tablet that uses the wacome driver.
Now, I just need to figure out how to actually draw :P.