Last active
December 19, 2018 09:47
-
-
Save Dinir/2503edfbffecfb81fc0bde99d0a51557 to your computer and use it in GitHub Desktop.
My setting for Wacom tablet CTH-490 to use on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this file in `/etc/X11/xorg.conf.d/`. If the directory doesn't exist you can just make one. | |
Section "InputClass" | |
Identifier "Wacom CTH-490 Pad" | |
MatchProduct "Intuos PT S 2 (WL) Pad pad|Intuos PT S 2 Pad pad" | |
MatchDevicePath "/dev/input/event*" | |
# adjust tablet's 16:10 area to 16:9, cropping top and bottom. | |
Option "TopX" "0" | |
Option "TopY" 475" | |
Option "BottomX" "15200" | |
Option "BottomY" "9025" | |
EndSection | |
Section "InputClass" | |
Identifier "Wacom CTH-490 Pen" | |
MatchProduct "Intuos PT S 2 (WL) Pen stylus|Intuos PT S 2 (WL) Pen stylus" | |
MatchDevicePath "/dev/input/event*" | |
Option "PressCurve" "0 10 90 100" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# if connected via wireless kit the device name has ` (WL)` | |
device="Wacom Intuos PT S 2 (WL)" | |
pad="$device Pad pad" | |
stylus="$device Pen stylus" | |
# device id displayed in `xinput` | |
finger=17 | |
# GIMP allows customizing mouse button 8~12 | |
xsetwacom set "$pad" "Button" "1" "10" | |
xsetwacom set "$pad" "Button" "3" "key shift" | |
xsetwacom set "$stylus" "Button" "2" "11" | |
xsetwacom set "$stylus" "Button" "3" "12" | |
# change the base speed | |
xinput set-prop $finger "Device Accel Profile" 2 | |
# decrease the constant deceleration so finger speed gets less slower | |
xinput set-prop $finger --type=float "Device Accel Constant Deceleration" 1 | |
# enable horizontal two-finger scrolling by setting the second value 1 | |
xinput set-prop $finger "Synaptics Two-Finger Scrolling" 1, 1 | |
# adjust the horizontal and vertical move speed to be same | |
xinput set-prop $finger "Synaptics Move Speed" 1, 1, 0, 0 | |
# faster scrolling speed | |
xinput set-prop $finger "Synaptics Scrolling Distance" 25, 25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment