Skip to content

Instantly share code, notes, and snippets.

@SilvortheGrand
Last active August 2, 2024 19:48
Show Gist options
  • Save SilvortheGrand/a9113e53c1aadcb30205005331cffa6f to your computer and use it in GitHub Desktop.
Save SilvortheGrand/a9113e53c1aadcb30205005331cffa6f to your computer and use it in GitHub Desktop.
Sets up the side buttons for the Kamvas 13 graphical tablet on Linux. Tested for Debian 12 and set up to use Krita's keybinds. Before running, ensure the drawing tablet is connected to the computer.
# NOTE: Button numbers 4-7 do not map to any buttons for technical reasons, thus the skip to 8
# Undo
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 1 key +Ctrl +Z
# Redo
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 2 key +Ctrl +Shift +Z
# Ctrl for easy zoom access
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 3 key +Ctrl
# Cut
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 8 key Ctrl X
# Paste
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 9 key Ctrl V
# Switch to brush mode
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 10 key B
# Switch to transform mode
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 11 key Ctrl T
# Remove current selection
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 12 key Ctrl Shift A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment