I got a drawing tablet a couple of days ago and I really wanted to be able to scroll with it (it only has 4 buttons). I saw that it might be possible on X11 with xsetwacom but I’m on wayland and I couldn’t find any way to make it work. So I hacked this together. Idk if anyone would find this useful but I did see a few threads around while looking to solve this exact problem so here you go.