Last active
January 4, 2016 15:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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