RetroFed Forum
Your home away from modern life.
draw rectangle on screen to map drawing tablet area
Post Reply
AuthorMessage
eksb programming.dev eksb@programming.dev
Joined: 2023-07-25
Quote

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?

1   Original
Post Reply
Back to top