dotfiles/.local/bin/tablet
2023-12-20 22:52:16 -05:00

24 lines
874 B
Bash
Executable file

#!/bin/bash
PAD="Wacom Intuos PT S Pad pad"
PEN="Wacom Intuos PT S Pen stylus"
ERASER="Wacom Intuous PT S Pen eraser"
FINGER="Wacom Intuous PT S Finger touch"
xsetwacom set "$PAD" button 3 "key shift"
xsetwacom set "$PAD" button 1 "key control"
xsetwacom set "$PAD" button 9 "key ;"
xsetwacom set "$PAD" button 8 "key '"
# xsetwacom set "$PEN" button 1 "key "
xsetwacom set "$PEN" MapToOutput 2560x1440+1920+0 #set the tablet to control the entire screen
xsetwacom set "$PEN" area 0 0 12500 9500 # set area to full tablet
xsetwacom set "$PEN" button 1 1 # click button - left click
xsetwacom set "$PEN" button 2 2 # top button - erase
xsetwacom set "$PEN" button 3 "key control pan" # bottom button - pan
xsetwacom set "$PEN" PanScrollThreshold -250
# export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus; notify-send "Wacom tablet found"