Skip to content

Instantly share code, notes, and snippets.

@Deevad
Created December 13, 2017 22:34
Embed
What would you like to do?
My wacom Intuos3 A4 xsetwacom script
#! /bin/bash
# Setup xsetwacom script for Intuos 3 9x12
# License: CC-0/Public-Domain license
# author: deevad
# Tablet definition
tabletstylus="Wacom Intuos3 9x12 Pen stylus"
tableteraser="Wacom Intuos3 9x12 Pen eraser"
tabletpad="Wacom Intuos3 9x12 Pad pad"
# Reset
xsetwacom --set "$tabletstylus" ResetArea
xsetwacom --set "$tableteraser" ResetArea
#xsetwacom --set "$tabletstylus" RawSample 4
# Screen mapping and keep ratio
# xsetwacom get "$tabletstylus" Area
# default area : 0 0 60960 45720
xsetwacom --set "$tabletstylus" MapToOutput "HEAD-0"
xsetwacom --set "$tableteraser" MapToOutput "HEAD-0"
screenX=1920
screenY=1080
Xtabletmaxarea=60960
areaY=$(( $screenY * $Xtabletmaxarea / $screenX ))
xsetwacom --set "$tabletstylus" Area 0 0 "$Xtabletmaxarea" "$areaY"
xsetwacom --set "$tableteraser" Area 0 0 "$Xtabletmaxarea" "$areaY"
# ---------
# | | 1 |
# | 3 |---|
# | | 2 |
# |-------|
# | 8 |
# ---------
# button on left
xsetwacom --set "$tabletpad" Button 3 "key Control_L" # color picker
xsetwacom --set "$tabletpad" Button 1 "key KP_Divide" # '/'
xsetwacom --set "$tabletpad" Button 2 "key Shift_L" # resize brush
xsetwacom --set "$tabletpad" Button 8 "key e" # color picker
xsetwacom --set "$tabletstylus" Button 2 "key Control_L" # color picker
xsetwacom --set "$tabletstylus" Button 3 3 # color picker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment