From aac3b40608a3177bdca32ff4e7455303553979c0 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Mon, 29 Nov 2021 23:23:53 -0600 Subject: [PATCH] improved huion-tablet-setup.sh --- huion-tablet-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/huion-tablet-setup.sh b/huion-tablet-setup.sh index 64a8a9e..8b77a06 100755 --- a/huion-tablet-setup.sh +++ b/huion-tablet-setup.sh @@ -8,7 +8,7 @@ # sudo make dkms_install # Make /etc/udev/rules.d/00-usb-huion.rules with this content (to run it whenever the tabler is conencted): -# ACTION=="add", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="006d", ENV{XAUTHORITY}="/home//.Xauthority", ENV{DISPLAY}=":0", OWNER=, RUN+="/usr/local/bin/huion-tablet-mount" +# ACTION=="add", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="006d", ENV{XAUTHORITY}="/home/sintan/.Xauthority", ENV{DISPLAY}=":0", OWNER=, RUN+="/usr/local/bin/huion-tablet-mount" # Make /usr/local/bin/huion-tablet-mount with this content : # #!/bin/bash @@ -19,7 +19,7 @@ sleep 1 -xsetwacom --set 'HID 256c:006d Pen stylus' Button 2 "1" +xsetwacom --set 'HID 256c:006d Pen stylus' Button 2 "2" xsetwacom --set 'HID 256c:006d Pen stylus' Button 3 "3" xsetwacom --set 'HID 256c:006d Pad pad' Button 1 "key +ctrl +s -s -ctrl" xsetwacom --set 'HID 256c:006d Pad pad' Button 2 "key +ctrl +e -e -ctrl"