support of opentabletdriver

This commit is contained in:
Mylloon 2025-05-02 17:31:53 +02:00
parent 18f377c376
commit f27c84f7d8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
7 changed files with 183 additions and 6 deletions

View file

@ -210,6 +210,13 @@ sync-plasma:
@echo "$(WIN) Xournal++ settings synced!"
@echo
# OpenTabletDriver presets
@$(MKDIR) $(HOME)/.config/OpenTabletDriver/Presets
@$(WGET) $(REPO_SRC)/opentabletdriver/vertical-linux-main.json -O $(HOME)/.config/OpenTabletDriver/Presets/vertical-main.json
@$(WGET) $(REPO_SRC)/opentabletdriver/vertical-linux-second.json -O $(HOME)/.config/OpenTabletDriver/Presets/vertical-second.json
@echo "$(WIN) OpenTabletDriver presets synced!"
@echo
# Gnome desktop specific
sync-gnome:
@ -304,8 +311,8 @@ sync-windows:
# OpenTabletDriver presets
@$(MKDIR) $(LOCALAPPDATA)/OpenTabletDriver/Presets
@$(WGET) $(REPO_SRC)/opentabletdriver/vertical-main.json -O $(LOCALAPPDATA)/OpenTabletDriver/Presets/vertical-main.json
@$(WGET) $(REPO_SRC)/opentabletdriver/vertical-second.json -O $(LOCALAPPDATA)/OpenTabletDriver/Presets/vertical-second.json
@$(WGET) $(REPO_SRC)/opentabletdriver/vertical-main.json -O $(LOCALAPPDATA)/OpenTabletDriver/Presets/vertical-win-main.json
@$(WGET) $(REPO_SRC)/opentabletdriver/vertical-second.json -O $(LOCALAPPDATA)/OpenTabletDriver/Presets/vertical-win-second.json
@echo "$(WIN) OpenTabletDriver presets synced!"
@echo

View file

@ -0,0 +1,85 @@
{
"Profiles": [
{
"Tablet": "Gaomon M10K",
"OutputMode": {
"Path": "OpenTabletDriver.Desktop.Output.LinuxArtistMode",
"Settings": [],
"Enable": true
},
"Filters": [],
"AbsoluteModeSettings": {
"Display": {
"Width": 1920.0,
"Height": 1080.0,
"X": 960.0,
"Y": 540.0,
"Rotation": 0.0
},
"Tablet": {
"Width": 127.0,
"Height": 79.375,
"X": 127.0,
"Y": 79.375,
"Rotation": 270.0
},
"EnableClipping": true,
"EnableAreaLimiting": false,
"LockAspectRatio": false
},
"RelativeModeSettings": {
"XSensitivity": 10.0,
"YSensitivity": 10.0,
"RelativeRotation": 0.0,
"RelativeResetDelay": "00:00:00.1000000"
},
"Bindings": {
"TipActivationThreshold": 0.0,
"TipButton": {
"Path": "VoiDPlugins.OutputMode.WindowsInkButtonHandler",
"Settings": [
{
"Property": "Button",
"Value": "Pen Tip"
}
],
"Enable": true
},
"EraserActivationThreshold": 0.0,
"EraserButton": null,
"PenButtons": [
{
"Path": "VoiDPlugins.OutputMode.WindowsInkButtonHandler",
"Settings": [
{
"Property": "Button",
"Value": "Eraser (Hold)"
}
],
"Enable": true
},
null
],
"AuxButtons": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"MouseButtons": [],
"MouseScrollUp": null,
"MouseScrollDown": null
}
}
],
"LockUsableAreaDisplay": true,
"LockUsableAreaTablet": true,
"Tools": []
}

View file

@ -0,0 +1,85 @@
{
"Profiles": [
{
"Tablet": "Gaomon M10K",
"OutputMode": {
"Path": "OpenTabletDriver.Desktop.Output.LinuxArtistMode",
"Settings": [],
"Enable": true
},
"Filters": [],
"AbsoluteModeSettings": {
"Display": {
"Width": 1920.0,
"Height": 1080.0,
"X": 2880.0,
"Y": 1186.0,
"Rotation": 0.0
},
"Tablet": {
"Width": 127.0,
"Height": 79.375,
"X": 127.0,
"Y": 79.375,
"Rotation": 270.0
},
"EnableClipping": true,
"EnableAreaLimiting": false,
"LockAspectRatio": false
},
"RelativeModeSettings": {
"XSensitivity": 10.0,
"YSensitivity": 10.0,
"RelativeRotation": 0.0,
"RelativeResetDelay": "00:00:00.1000000"
},
"Bindings": {
"TipActivationThreshold": 0.0,
"TipButton": {
"Path": "VoiDPlugins.OutputMode.WindowsInkButtonHandler",
"Settings": [
{
"Property": "Button",
"Value": "Pen Tip"
}
],
"Enable": true
},
"EraserActivationThreshold": 0.0,
"EraserButton": null,
"PenButtons": [
{
"Path": "VoiDPlugins.OutputMode.WindowsInkButtonHandler",
"Settings": [
{
"Property": "Button",
"Value": "Eraser (Hold)"
}
],
"Enable": true
},
null
],
"AuxButtons": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"MouseButtons": [],
"MouseScrollUp": null,
"MouseScrollDown": null
}
}
],
"LockUsableAreaDisplay": true,
"LockUsableAreaTablet": true,
"Tools": []
}

View file

@ -170,8 +170,8 @@ PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPa
:: Presets of OpenTabletDriver
ECHO Downloading OpenTabletDriver presets...
MKDIR "%LOCALAPPDATA%\OpenTabletDriver\Presets" 2>NUL
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-main.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-main.json'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-second.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-second.json'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-win-main.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-main.json'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-win-second.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-second.json'"
:: Settings of OpenTabletDriver, using 'vertical-main.json' as default settings
ECHO Setting up OpenTabletDriver...

View file

@ -198,8 +198,8 @@ PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPa
:: Presets of OpenTabletDriver
ECHO Downloading OpenTabletDriver presets...
MKDIR "%LOCALAPPDATA%\OpenTabletDriver\Presets" 2>NUL
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-main.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-main.json'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-second.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-second.json'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-win-main.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-main.json'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-win-second.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-second.json'"
:: Settings of OpenTabletDriver, using 'vertical-main.json' as default settings
ECHO Setting up OpenTabletDriver...