blob: 38ea46e2366034706ea2a15c7d22c7e4d8f4eb36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|