Originally Posted by
shazeal
This is the script I use on startup.
All you need to change for yours is the IN_1-4 variables which would just be in lowercase for you, and your options in place of mine of course.
...
Hi Shazeal
With the same problem of changing IDs after each plug-in, I followed your script and tried to adapt it. It failed obviously because I don't fully understand what I am doing
Could you help?
This is my script to disable and enable Touch:
Code:
#!/bin/bash
IN_4=touch
TOUCH=$( xsetwacom list | grep $IN_4 | sed "s/$IN_4//g" | sed "s/ *$//" )
STATUS=`xsetwacom get "${TOUCH}" touch`
if [ "$STATUS" == "0" ]
then
echo "Touch was OFF, enabling."
xsetwacom set "${TOUCH}" touch on
else
echo "Touch was ON, disabling."
xsetwacom set "${TOUCH}" touch off
fi
I get this error:
Code:
Error (2): WacomConfigOpenDevice: No such device
Get: Failed to open device 'Wacom_BambooFun_2FG_4x57_'
Touch was ON, disabling.
Error (2): WacomConfigOpenDevice: No such device
Set: Failed to open device 'Wacom_BambooFun_2FG_4x57_'
By the way, I had to change "xsetwacom --list" to "xsetwacom list".
Thanks
Bookmarks