Skip to content

Instantly share code, notes, and snippets.

@aurelienpierre
Last active January 4, 2016 15:29
Show Gist options
  • Save aurelienpierre/8640749 to your computer and use it in GitHub Desktop.
Save aurelienpierre/8640749 to your computer and use it in GitHub Desktop.
Configure a Wacom Intuos (tablet) button touch switch - call this script through a special keystroke
#!/bin/bash
## Get the "Device name" or ID number
## for touch from 'xsetwacom list dev'
DEVICE="Wacom Intuos PT M Finger touch"
TOUCH_STATE=`xsetwacom get "$DEVICE" touch`
if [ "$TOUCH_STATE" == "on" ]
then
echo "Touch is ON, turning OFF."
xsetwacom set "$DEVICE" touch off
else
echo "Touch is OFF, turning ON."
xsetwacom set "$DEVICE" touch on
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment