Skip to content

Instantly share code, notes, and snippets.

@laroo
Created December 3, 2015 09:53
Show Gist options
  • Save laroo/83d52a1b6e5c080c9252 to your computer and use it in GitHub Desktop.
Save laroo/83d52a1b6e5c080c9252 to your computer and use it in GitHub Desktop.
Configuration for Wacom Graphire4 on Ubuntu 14.04
#!/bin/sh
# Configuration for Wacom Graphire4 on Ubuntu 14.04
#
# Add this script to your '~/.bashrc'
# (based on http://burner.com/autodesk-stuff/remapping-wacom-buttons-linux/)
# $ xsetwacom list dev
# Wacom Graphire4 4x5 stylus id: 12 type: STYLUS
# Wacom Graphire4 4x5 eraser id: 13 type: ERASER
# Wacom Graphire4 4x5 cursor id: 14 type: CURSOR
# Wacom Graphire4 4x5 pad id: 15 type: PAD
# Setup the buttons:
# 1 = left click
# 2 = right click
# 3 = none
/usr/bin/xsetwacom --set "Wacom Graphire4 4x5 stylus" button 1 1
/usr/bin/xsetwacom --set "Wacom Graphire4 4x5 stylus" button 2 3
/usr/bin/xsetwacom --set "Wacom Graphire4 4x5 stylus" button 3 0
# Original (lower value is more sensitive, don't like it)
/usr/bin/xsetwacom --set "Wacom Graphire4 4x5 stylus" Threshold 80
# Not using this
/usr/bin/xsetwacom --set "Wacom Graphire4 4x5 stylus" ScrollDistance 1024
# Default=2 (by using 10 small shaking/shifting is not registered)
/usr/bin/xsetwacom --set "Wacom Graphire4 4x5 stylus" Suppress 10
# Default=4 (20 is very slow, long delay)
/usr/bin/xsetwacom --set "Wacom Graphire4 4x5 stylus" RawSample 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment