#!/bin/bash

# All the information used here was gleaned from:
#	http://bartssolutions.blogspot.ca/2015/02/how-to-configure-wacom-intuos-express.html
# Thanks, Bart Van Audenhove!
xsetwacom --set "Wacom Intuos Pro S Finger touch" touch "off"


## BUTTONS ON THE PAD
## xsetwacom --set "Wacom Intuos Pro S Pad pad" Button 1 key "x"

# A = Button 2
# B = Button 3 
# C = Button 8
# circle = Button 1
# D = Button 9
# E = Button 10
# F = Button 11

xsetwacom --set "Wacom Intuos Pro S Pad pad" Button 2 key "g"
xsetwacom --set "Wacom Intuos Pro S Pad pad" Button 2 key "a"
xsetwacom --set "Wacom Intuos Pro S Pad pad" Button 3 key "b"
xsetwacom --set "Wacom Intuos Pro S Pad pad" Button 8 key "c"
xsetwacom --set "Wacom Intuos Pro S Pad pad" Button 9 key "d"
xsetwacom --set "Wacom Intuos Pro S Pad pad" Button 10 key "e"
xsetwacom --set "Wacom Intuos Pro S Pad pad" Button 11 key "f"

## BUTTONS ON THE STYLUS
## xsetwacom --set "Wacom Intuos Pro S Pen stylus" Button 2 key "x"
# nib touch = Button 1
# down = Button 2
# up  = Button 3

xsetwacom --set "Wacom Intuos Pro S Pen stylus" Button 1 key "t"
xsetwacom --set "Wacom Intuos Pro S Pen stylus" Button 2 key "d"
xsetwacom --set "Wacom Intuos Pro S Pen stylus" Button 3 key "u"


## WHEEL
xsetwacom --set "Wacom Intuos Pro S Pad pad" AbsWheelUp key "="
xsetwacom --set "Wacom Intuos Pro S Pad pad" AbsWheelDown key "-"

