Simple Wacom scripts

Create a ‘Wacom Disable Touch’ shell script:

# First, find out the command for your Wacom:xsetwacom --list devices
Image for post
Image for post
In this case, the touch is called “Wacom Cintiq 24HD touch Finger touch”
# Then, make Scripts folder to Home:mkdir -p ~/Scripts/Wacom# Make the script:nano ~/Scripts/Wacom/wacom_disable_touch.sh# Write or copy-paste (Ctrl+C, Ctrl+Shift+V) the following text in there, but replace the "Wacom Cintiq 24HD touch Finger touch" part with what you have:#!/bin/sh
xsetwacom --set "Wacom Cintiq 24HD touch Finger touch" touch off
# Save and close (Ctrl+X, Y, Enter)# Then, give execute permission for it:chmod +x ~/Scripts/Wacom/wacom_disable_touch.sh# You can test the command with:sh ~/Scripts/Wacom/wacom_disable_touch.sh

Create a ‘Wacom Set Screen’ shell script:

# Make Scripts folder to Home, if you haven't already:mkdir -p ~/Scripts/Wacom# Make the script:nano ~/Scripts/Wacom/wacom_set_screen1.sh# Write or copy-paste (Ctrl+C, Ctrl+Shift+V) the following text in there, but replace the "Wacom Intuos4 6x9 Pen stylus" part with what you have:#!/bin/sh
xsetwacom set "Wacom Intuos4 6x9 Pen stylus" MapToOutput HEAD-0
# Save and close (Ctrl+X, Y, Enter)# Then, give execute permission for it:chmod +x ~/Scripts/Wacom/wacom_set_screen1.sh# HEAD-0 is the monitor 1, HEAD-1 is the monitor 2, and so on. You can make more of these scripts depending on how many monitors you have, if you want to be able to switch between them (to use Wacom on monitor 1 or monitor 2).
Using the command line text editor Nano to make a small Wacom shell script

You can make these scripts to be run automatically when you login to your distro. For example in Xfce desktop environment (like what Xubuntu uses) search for ‘Startup’ to open the ‘Session and Startup’ application in order to add your scripts into it:

Image for post
Image for post
Adding a Wacom script for autostart in the Session and Startup application

You can also use a shortcut, like Ctrl+Shift+F1 to run the script to map Wacom to monitor 1 (HEAD-0) and Ctrl+Shift+F2 for an other script to map it to monitor 2 (HEAD-1):

Image for post
Image for post

Simple Wacom scripts” by Manu Järvinen is licensed under CC BY 4.0

Written by

Animator, 3D modeler and illustrator. Likes open-source stuff like Blender, Linux, Gimp & Krita. And Demoscene. Support me on Patreon.com/manujarvinen

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store