summaryrefslogtreecommitdiff
path: root/wacom.sh
diff options
context:
space:
mode:
authormiguel <miguel@megaloman.softwarefools.com>2021-01-24 21:33:31 +0100
committermiguel <miguel@megaloman.softwarefools.com>2021-01-24 21:33:31 +0100
commit115a65be0583658a7f39a7abaeb2401448f0d7c9 (patch)
tree3c75fc44222b72f11900d098da5d5ff157c19542 /wacom.sh
parent5ec428a0c177025b9c04330ae3f39cbde27a2d81 (diff)
add some stuff from megaloman
Diffstat (limited to 'wacom.sh')
-rw-r--r--wacom.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/wacom.sh b/wacom.sh
new file mode 100644
index 0000000..38ea46e
--- /dev/null
+++ b/wacom.sh
@@ -0,0 +1,24 @@
+# https://github.com/linuxwacom/xf86-input-wacom/wiki/Calibration
+# https://gist.github.com/Deevad/51820854ffd5ea5cd883
+
+xsetwacom --list
+
+OUTPUT=3840x2400+4225+0
+OUTPUT=1920x1080+1920+0
+
+AREA="0 0 44704 27940" #default (checked via --get)
+AREA="0 0 44704 25146" #change to 16:9
+
+STYLUSID=$(xsetwacom --list | grep STYLUS | sed "s/.*id: \([0-9]*\).*/\1/")
+ERASERID=$(xsetwacom --list | grep ERASER | sed "s/.*id: \([0-9]*\).*/\1/")
+TOUCHID=$(xsetwacom --list | grep TOUCH | sed "s/.*id: \([0-9]*\).*/\1/")
+
+echo $STYLUSID STYLUS
+echo $ERASERID ERASER
+echo $TOUCHID TOUCH
+
+xsetwacom --set $STYLUSID MapToOutput $OUTPUT # stylus
+xsetwacom --set $STYLUSID Area $AREA # stylus
+xsetwacom --set $ERASERID MapToOutput $OUTPUT # eraser
+xsetwacom --set $ERASERID Area $AREA # stylus
+xsetwacom --set $TOUCHID Touch off # touch