Skip to content

Instantly share code, notes, and snippets.

@nlamprian
Last active July 22, 2018 10:08
Show Gist options
  • Save nlamprian/fbd0623d0509b22af2469e9c283dcca3 to your computer and use it in GitHub Desktop.
Save nlamprian/fbd0623d0509b22af2469e9c283dcca3 to your computer and use it in GitHub Desktop.
#!/bin/sh
DEVICE="Wacom Intuos3 6x8"
STYLUS="$DEVICE Pen stylus"
ERASER="$DEVICE Pen eraser"
CURSOR="$DEVICE Pen cursor"
PAD="$DEVICE Pad pad"
# Stylus
xsetwacom set "$STYLUS" Button 1 1 # Left Click
xsetwacom set "$STYLUS" Button 2 3 # Right Click
xsetwacom set "$STYLUS" Button 3 "button 1 button 1" # Left Double Click
# Pad
xsetwacom set "$PAD" Button 1 "key ctrl x" # Cut
xsetwacom set "$PAD" Button 2 "key ctrl c" # Copy
xsetwacom set "$PAD" Button 3 "key ctrl z" # Undo
xsetwacom set "$PAD" Button 8 "key ctrl v" # Paste
xsetwacom set "$PAD" Button 9 "key ctrl w" # Close Tab
xsetwacom set "$PAD" Button 10 "key ctrl tab" # Change Tab
xsetwacom set "$PAD" Button 11 "key alt f4" # Close Window
xsetwacom set "$PAD" Button 12 "key alt tab" # Change Window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment