Simple Wacom scripts

Create a ‘Wacom Disable Touch’ shell script:

# First, find out the command for your Wacom:
xsetwacom --list devices
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:

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):



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

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.