1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 21:18:36 -06:00

improved huion-tablet-setup.sh

This commit is contained in:
Sayantan Santra 2021-11-29 23:23:53 -06:00
parent 11dc16df6b
commit aac3b40608

View file

@ -8,7 +8,7 @@
# sudo make dkms_install # sudo make dkms_install
# Make /etc/udev/rules.d/00-usb-huion.rules with this content (to run it whenever the tabler is conencted): # 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/<user>/.Xauthority", ENV{DISPLAY}=":0", OWNER=<user>, RUN+="/usr/local/bin/huion-tablet-mount" # ACTION=="add", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="006d", ENV{XAUTHORITY}="/home/sintan/.Xauthority", ENV{DISPLAY}=":0", OWNER=<user>, RUN+="/usr/local/bin/huion-tablet-mount"
# Make /usr/local/bin/huion-tablet-mount with this content : # Make /usr/local/bin/huion-tablet-mount with this content :
# #!/bin/bash # #!/bin/bash
@ -19,7 +19,7 @@
sleep 1 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 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 1 "key +ctrl +s -s -ctrl"
xsetwacom --set 'HID 256c:006d Pad pad' Button 2 "key +ctrl +e -e -ctrl" xsetwacom --set 'HID 256c:006d Pad pad' Button 2 "key +ctrl +e -e -ctrl"