61 lines
1.6 KiB
Bash
Executable File
61 lines
1.6 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#HID_STYLUS="HID 256c:006e Pen stylus"
|
|
#HID_PAD="HID 256c:006e Pad pad"
|
|
HID_STYLUS="HID 256c:006e"
|
|
HID_PAD="HID 256c:006e Pad"
|
|
# xsetwacom --set "$HID_PAD" Area 0 0 50800 28575
|
|
xsetwacom --set "$HID_STYLUS" MapToOutput DVI-D-0
|
|
|
|
# Tester
|
|
#xsetwacom --set "$HID_PAD" Button 1 "key a"
|
|
#xsetwacom --set "$HID_PAD" Button 2 "key b"
|
|
#xsetwacom --set "$HID_PAD" Button 3 "key c"
|
|
#xsetwacom --set "$HID_PAD" Button 4 "key d"
|
|
#xsetwacom --set "$HID_PAD" Button 5 "key e"
|
|
#xsetwacom --set "$HID_PAD" Button 6 "key f"
|
|
#xsetwacom --set "$HID_PAD" Button 7 "key g"
|
|
#xsetwacom --set "$HID_PAD" Button 8 "key h"
|
|
#xsetwacom --set "$HID_PAD" Button 9 "key i"
|
|
#xsetwacom --set "$HID_PAD" Button 10 "key j"
|
|
#xsetwacom --set "$HID_PAD" Button 11 "key k"
|
|
#xsetwacom --set "$HID_PAD" Button 12 "key l"
|
|
#xsetwacom --set "$HID_PAD" Button 13 "key m"
|
|
#xsetwacom --set "$HID_PAD" Button 14 "key n"
|
|
#xsetwacom --set "$HID_PAD" Button 15 "key o"
|
|
#xsetwacom --set "$HID_PAD" Button 16 "key p"
|
|
|
|
# Huion 1060 New buttons from top to bottom:
|
|
# 1 2
|
|
# 3 8
|
|
# 9 10
|
|
# ----
|
|
# 11 12
|
|
# 13 14
|
|
# 15 16
|
|
|
|
## 1
|
|
xsetwacom --set "$HID_PAD" Button 1 "key +ctrl +z -z -ctrl"
|
|
xsetwacom --set "$HID_PAD" Button 2 "key +ctrl +shift +z -z -ctrl -shift"
|
|
|
|
## 2
|
|
xsetwacom --set "$HID_PAD" Button 3 "key L"
|
|
xsetwacom --set "$HID_PAD" Button 8 "key K"
|
|
|
|
## 3
|
|
xsetwacom --set "$HID_PAD" Button 9 "key -"
|
|
xsetwacom --set "$HID_PAD" Button 10 "key +"
|
|
|
|
#
|
|
#xsetwacom --set "$HID_PAD" Button 13 "key p"
|
|
#xsetwacom --set "$HID_PAD" Button 12 "key ["
|
|
|
|
## 2
|
|
#xsetwacom --set "$HID_PAD" Button 11 "key ]"
|
|
#xsetwacom --set "$HID_PAD" Button 10 "key +"
|
|
|
|
## 5
|
|
#xsetwacom --set "$HID_PAD" Button 3 "key b"
|
|
|
|
## 6
|