Skip to content

Instantly share code, notes, and snippets.

@arnabsen1729
Created June 8, 2021 11:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Scrip to assign shortcut keys to my H950P Huion tablet
#!/bin/bash
PAD_NAME=$(xsetwacom --list devices | grep pad | cut -f 1 | awk '{$1=$1;print}')
xsetwacom --set "${PAD_NAME}" Button 1 "key +ctrl +c -c -ctrl"
xsetwacom --set "${PAD_NAME}" Button 2 "key +ctrl +v -v -ctrl"
xsetwacom --set "${PAD_NAME}" Button 3 "key +ctrl +z -z -ctrl"
xsetwacom --set "${PAD_NAME}" Button 8 "key +ctrl +a -a -ctrl"
xsetwacom --set "${PAD_NAME}" Button 9 "key +BackSpace -BackSpace"
xsetwacom --set "${PAD_NAME}" Button 11 "key +ctrl + -ctrl"
xsetwacom --set "${PAD_NAME}" Button 12 "key +ctrl - -ctrl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment