wacom intuos s
the tablet has 4 buttons, the stylus has 2 buttons
I want the following functions
- undo
- redo
- switch to eraser
- send to clipboard
- clear canvas
there is one button remaining it could be
- paste
- change to line tool
- change to text
- cycle color
- pan
stylus: pan + undo
tablet: eraser, screenshot/clipboard,
more useful: paste at point, see https://community.mypaint.org/t/paste-image-from-the-clipboard-under-pointer/2769
https://wiki.archlinux.org/index.php/Wacom_tablet#Mapping_pad_buttons_to_function_keys
git clone https://github.com/CodeMouse92/WacomRotate cd WacomRotate chmod u+x wacomrotate nix-shell -p pcre ./wacomrotate pf #pf stands for portrait flipped
running xev -event button
yields the following
physical | logical |
---|---|
stylus contact | 1 |
lower stylus | 2 |
upper stylus | 3 |
pad 1 | 1 |
pad 2 | 2 |
pad 3 | 3 |
pad 4 | 8 |
however, we empirically see that same-numbered buttons can have different effects in software for instance, using the laptop button 1 in mypaint results in the brush being used but this is not the case when using stylus contact
First run xsetwacom --list devices
Then reconfigure buttons, for instance: xsetwacom set 'Wacom Intuos S Pad pad' Button 4 9
xsetwacom set ‘Wacom Intuos S Pad pad’ Button 1 12 xsetwacom set ‘Wacom Intuos S Pad pad’ Button 2 11 xsetwacom set ‘Wacom Intuos S Pad pad’ Button 3 10