Skip to content

Instantly share code, notes, and snippets.

@KmolYuan
Last active December 12, 2020 04:52
Show Gist options
  • Save KmolYuan/56fdfbf9979573c71628c0897b539d14 to your computer and use it in GitHub Desktop.
Save KmolYuan/56fdfbf9979573c71628c0897b539d14 to your computer and use it in GitHub Desktop.
Huion tablet using Wacom driver in Linux Krita.
#!/bin/bash
# Wait for the GUI to be ready
while [[ ! $(pgrep plasmashell) ]]; do sleep 1; done
xsetwacom set "HID 256c:006d Pad pad" button 1 key 2
xsetwacom set "HID 256c:006d Pad pad" button 2 key Ctrl S
xsetwacom set "HID 256c:006d Pad pad" button 3 key -
xsetwacom set "HID 256c:006d Pad pad" button 8 key +
xsetwacom set "HID 256c:006d Pad pad" button 9 key Ctrl Shift Z
xsetwacom set "HID 256c:006d Pad pad" button 10 key Ctrl Z
xsetwacom set "HID 256c:006d Pad pad" button 11 key Ctrl
xsetwacom set "HID 256c:006d Pad pad" button 12 key Shift
xsetwacom set "HID 256c:006d stylus" MapToOutput HEAD-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment