I wrote a script and bound it to a key combo so I can draw a rectangle on the screen and map my drawing tablet to that area.
Future improvement: force the mapped area to the same aspect ratio as the tablet. I hope I can find a better way to programmatically get the ratio than running xinput list-devices
and parsing out “Size: 160x100mm”.
Bound via bindsym $mod+Shift+t exec ~/.config/sway/tablet-map
. Is there a better way to reference the way config directory?
You must log in or register to comment.