Skip to content

Instantly share code, notes, and snippets.

@razouck
Last active August 15, 2020 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save razouck/e54008da4d9fd4b551f51cf05717569b to your computer and use it in GitHub Desktop.
Save razouck/e54008da4d9fd4b551f51cf05717569b to your computer and use it in GitHub Desktop.
Set up for my drawing tablet on linux
Section "InputClass"
Identifier "Tablet"
Driver "wacom"
MatchDevicePath "/dev/input/event*"
MatchUSBID "256c:006e"
EndSection
#http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap
xsetwacom set "HID 256c:006e Pen stylus" MapToOutput LVDS-1
xsetwacom set "HID 256c:006e Pen stylus" Mode "Absolute"
xsetwacom set "HID 256c:006e Pen stylus" rotate half
xsetwacom set "HID 256c:006e Pad pad" button 16 key tab
xsetwacom set "HID 256c:006e Pad pad" button 14 key 6
xsetwacom set "HID 256c:006e Pad pad" button 13 key 4
xsetwacom set "HID 256c:006e Pad pad" button 12 "key ctrl +0x020"
xsetwacom set "HID 256c:006e Pad pad" button 11 "key +0x020"
xsetwacom set "HID 256c:006e Pad pad" button 10 key B
xsetwacom set "HID 256c:006e Pad pad" button 9 key E
xsetwacom set "HID 256c:006e Pad pad" button 8 key Ctrl
xsetwacom set "HID 256c:006e Pad pad" button 3 key Shift
xsetwacom set "HID 256c:006e Pad pad" button 2 key Ctrl Z
xsetwacom set "HID 256c:006e Pad pad" button 1 key Ctrl Shift Z
@razouck
Copy link
Author

razouck commented Jan 18, 2020

The first file need to be put on /etc/X11/xorg.conf.d/. The second one, preferably in your path.

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