Created
March 10, 2020 03:40
-
-
Save tynrare/6dca3dff6cff9305b1806de84ea7e388 to your computer and use it in GitHub Desktop.
krita wacom linux
This file contains 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
#Название устройств, независимо от того, проводное или беспроводное подключение для планшета | |
DEVICE_STYLUS=`xsetwacom list dev | grep -E -o ".*stylus"` | |
DEVICE_PAD=`xsetwacom list dev | grep -E -o ".*pad"` | |
DEVICE_TOUCH=`xsetwacom list dev | grep -E -o ".*touch"` | |
#Всплывающее предупреждение об используемом профиле. | |
notify-send "Using Krita profile" | |
#Рабочая область для стилуса | |
#Для двух мониторов просто ширину 2 монитора прибавить к 1: MapToOutput 3440+1440+0+240 | |
xsetwacom set "$DEVICE_STYLUS" MapToOutput HEAD-0 | |
## Настройки для стилуса | |
xsetwacom set "$DEVICE_STYLUS" RawSample "2" # кол-во исходных данных для фильтрации точек | |
xsetwacom set "$DEVICE_STYLUS" Threshold "27" # порог чувствительности пера | |
xsetwacom set "$DEVICE_STYLUS" PressureCurve "5 10 90 95" # Кривая безье давления | |
xsetwacom set "$DEVICE_STYLUS" TabletPCButton "off" # кнопки стилуса работают рядом с экраном | |
xsetwacom set "$DEVICE_STYLUS" Mode "Absolute" # абсолютная либо относительная привязка курсора к экрану | |
xsetwacom set "$DEVICE_STYLUS" Button 1 "1" # левый клик | |
xsetwacom set "$DEVICE_STYLUS" Button 2 "3" # правый клик | |
xsetwacom set "$DEVICE_STYLUS" Button 3 "2" # средний клик | |
## Сам планшет | |
xsetwacom set "$DEVICE_PAD" Button 2 "key shift" | |
xsetwacom set "$DEVICE_PAD" Button 3 "key ctrl" | |
xsetwacom set "$DEVICE_PAD" Button 8 "key ctrl Z" | |
xsetwacom set "$DEVICE_PAD" Button 9 "key ctrl shift A" | |
# Неизвестно, где находятся эти кнопки | |
#xsetwacom set "$DEVICE_PAD" Button 4 "key D" | |
#xsetwacom set "$DEVICE_PAD" Button 5 "key E" | |
xsetwacom set "$DEVICE_PAD" AbsWheelDown "5" # тачринг по часовой | |
xsetwacom set "$DEVICE_PAD" Button 1 "key E" # кнопка внутри тачринга | |
xsetwacom set "$DEVICE_PAD" AbsWheelUp "4" # тачринг против часовой | |
xsetwacom set "$DEVICE_PAD" Button 10 "key ctrl K" | |
xsetwacom set "$DEVICE_PAD" Button 11 "key ctrl M" | |
xsetwacom set "$DEVICE_PAD" Button 12 "key O" | |
xsetwacom set "$DEVICE_PAD" Button 13 "key I" | |
xsetwacom set "$DEVICE_PAD" ScrollDistance "10" | |
xsetwacom set "$DEVICE_PAD" TapTime "50" | |
exec krita |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment