Skip to content

Instantly share code, notes, and snippets.

@vakili
Created June 8, 2021 08:53
Show Gist options
  • Save vakili/3a1615fea032484428330972df8ec3b0 to your computer and use it in GitHub Desktop.
Save vakili/3a1615fea032484428330972df8ec3b0 to your computer and use it in GitHub Desktop.

wacom intuos s

the tablet has 4 buttons, the stylus has 2 buttons

I want the following functions

  1. undo
  2. redo
  3. switch to eraser
  4. send to clipboard
  5. 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

resources

https://wiki.archlinux.org/index.php/Wacom_tablet#Mapping_pad_buttons_to_function_keys

portrait mode

git clone https://github.com/CodeMouse92/WacomRotate cd WacomRotate chmod u+x wacomrotate nix-shell -p pcre ./wacomrotate pf #pf stands for portrait flipped

buttons

running xev -event button yields the following

physicallogical
stylus contact1
lower stylus2
upper stylus3
pad 11
pad 22
pad 33
pad 48

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

reconfiguring

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment