Skip to content

Instantly share code, notes, and snippets.

@i-e-b
Last active April 26, 2018 14:54
Show Gist options
  • Save i-e-b/2894651 to your computer and use it in GitHub Desktop.
Save i-e-b/2894651 to your computer and use it in GitHub Desktop.
.xinitrc for my Wacom Intuos 3 using xsetwacom
#!/bin/bash
# Map caps->esc
xmodmap -e 'clear lock'
xmodmap -e 'keycode 0x42 = Escape'
# Stylus stuff
# Set pad working area for pen. was 0 0 54204 31750; this is for screen of 2560 x 1024
xsetwacom --set "Wacom Intuos3 6x11 stylus" area "0 0 54204 21682"
# upper pen button double click
xsetwacom --set "Wacom Intuos3 6x11 stylus" Button 3 "button 1 button 1"
# lower pen button right click
xsetwacom --set "Wacom Intuos3 6x11 stylus" Button 2 3
# Pad stuff
# set 'normal' direction scrolling on both touch pads
# to get 'old skool X' physical direction scrolling, swap the "button 4" and "button 5" calls
xsetwacom --set "Wacom Intuos3 6x11 pad" StripLeftUp "button 4"
xsetwacom --set "Wacom Intuos3 6x11 pad" StripLeftDown "button 5"
xsetwacom --set "Wacom Intuos3 6x11 pad" StripRightUp "button 4"
xsetwacom --set "Wacom Intuos3 6x11 pad" StripRightDown "button 5"
# Multiple screens
xrandr --output HDMI1 --right-of VGA1
#!/bin/bash
# Stylus stuff
# Set pad working area for pen. was 0 0 54204 31750; this is for screen of 2560 x 1024
xsetwacom --set "Wacom Intuos3 6x11 stylus" area "0 0 54204 21682"
# upper pen button double click
xsetwacom --set "Wacom Intuos3 6x11 stylus" Button 3 "button 1 button 1"
# lower pen button right click
xsetwacom --set "Wacom Intuos3 6x11 stylus" Button 2 "Button 3"
# Pad stuff
# set 'normal' direction scrolling on both touch pads
# to get 'old skool X' physical direction scrolling, swap the "button 4" and "button 5" calls
xsetwacom --set "Wacom Intuos3 6x11 pad" StripLeftUp "button 4"
xsetwacom --set "Wacom Intuos3 6x11 pad" StripLeftDown "button 5"
xsetwacom --set "Wacom Intuos3 6x11 pad" StripRightUp "button 4"
xsetwacom --set "Wacom Intuos3 6x11 pad" StripRightDown "button 5"
@outbound-pt
Copy link

Hi,

I have the exact same Intuos3 as you have but I cannot for the life of me configure the strip buttons to the mouse-scroll up and down. For some reason the only behaviour I get out of "button 5" is the same as pressing the key combination "alt+t".

I'm on CentOS 6.9 with Gnome 2.28.2 if that's at all relevant.

Best regards,

@outbound-pt
Copy link

SO I finally found out what the problem was.

I just had to completely turn off the Gnome Wacom utility and just use the xsetwacom utility, otherwise the Gnome utility blocks all mouse buttons events from being triggered from the pad buttons. The issue is specified here:

https://github.com/linuxwacom/xf86-input-wacom/wiki/Consumer-Tablet-ExpressKey-Mapping-Issue

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