Skip to content

Instantly share code, notes, and snippets.

@rjmoggach
Created February 24, 2015 22:38
Show Gist options
  • Save rjmoggach/6d37d1693d3584ab19af to your computer and use it in GitHub Desktop.
Save rjmoggach/6d37d1693d3584ab19af to your computer and use it in GitHub Desktop.
xsetwacom Intuos4
#!/usr/bin/env bash
#################
# Wacom buttons :
#################
# tablet identificators :
# xinput --list | grep '[w|W]acom'
DEVICE="Wacom Intuos4 4x6 pad"
STYLUS="Wacom Intuos4 4x6 stylus"
# Button
# xsetwacom --set "$DEVICE" Button2 "" # "key ctrl f12"
# xsetwacom --set "$DEVICE" Button3 "" # "key x"
# xsetwacom --set "$DEVICE" Button4 "" # "key m"
# xsetwacom --set "$DEVICE" Button5 "" # "key ctrl z"
# ---
# xsetwacom --set "$DEVICE" AbsWheelDown "" # "key ctrl"
# xsetwacom --set "$DEVICE" Button1 "" # "key ctrl"
# xsetwacom --set "$DEVICE" AbsWheelUp "" # "key ctrl"
# ---
# xsetwacom --set "$DEVICE" Button6 "" # "key shift"
# xsetwacom --set "$DEVICE" Button7 "" # "key c"
# xsetwacom --set "$DEVICE" Button8 "" # "key w"
# xsetwacom --set "$DEVICE" Button9 "" # "Key e"
for butnum in $(seq 32)
do
xsetwacom --set "${DEVICE}" Button$butnum off
done
xsetwacom --set "$DEVICE" Button2 off
xsetwacom --set "$DEVICE" Button3 off
xsetwacom --set "$DEVICE" Button4 off
xsetwacom --set "$DEVICE" Button5 off
xsetwacom --set "$DEVICE" AbsWUp off
xsetwacom --set "$DEVICE" Button1 off
xsetwacom --set "$DEVICE" AbsWDn off
xsetwacom --set "$DEVICE" Button6 off
xsetwacom --set "$DEVICE" Button7 off
xsetwacom --set "$DEVICE" Button8 off
xsetwacom --set "$DEVICE" Button9 off
xsetwacom --set "$DEVICE" TopX 44704
xsetwacom --set "$DEVICE" TopY 27940
xsetwacom --set "$DEVICE" BottomX 0
xsetwacom --set "$DEVICE" BottomY 0
xsetwacom --set "$DEVICE" BottomX 44704
xsetwacom --set "$DEVICE" BottomY 27940
xsetwacom --set "$DEVICE" TopX 0
xsetwacom --set "$DEVICE" TopY 0
xsetwacom --set "$DEVICE" Rotate NONE # HALF NONE
# Stylus
xsetwacom --set "$STYLUS" button2 "" # "key Control" # button down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment