wacom: Install OpenTabletDriver
This commit is contained in:
parent
2b642b2aaf
commit
fe06b965b8
|
@ -11,6 +11,8 @@ in
|
|||
boot.initrd.availableKernelModules =
|
||||
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||
|
||||
hardware.opentabletdriver.enable = true;
|
||||
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
zenpower
|
||||
];
|
||||
|
|
|
@ -100,6 +100,8 @@ in
|
|||
indicator = true;
|
||||
};
|
||||
|
||||
xdg.configFile."OpenTabletDriver/settings.json".source = ./open-tablet-driver.json;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
sway
|
||||
swaybg
|
||||
|
|
114
user/sway/open-tablet-driver.json
Normal file
114
user/sway/open-tablet-driver.json
Normal file
|
@ -0,0 +1,114 @@
|
|||
{
|
||||
"Profiles": [
|
||||
{
|
||||
"Tablet": "Wacom CTL-4100",
|
||||
"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": 152.0,
|
||||
"Height": 85.5,
|
||||
"X": 76.0,
|
||||
"Y": 47.5,
|
||||
"Rotation": 0.0
|
||||
},
|
||||
"EnableClipping": false,
|
||||
"EnableAreaLimiting": false,
|
||||
"LockAspectRatio": true
|
||||
},
|
||||
"RelativeModeSettings": {
|
||||
"XSensitivity": 10.0,
|
||||
"YSensitivity": 10.0,
|
||||
"RelativeRotation": 0.0,
|
||||
"RelativeResetDelay": "00:00:00.1000000"
|
||||
},
|
||||
"Bindings": {
|
||||
"TipActivationThreshold": 0.0,
|
||||
"TipButton": null,
|
||||
"EraserActivationThreshold": 0.0,
|
||||
"EraserButton": null,
|
||||
"PenButtons": [
|
||||
{
|
||||
"Path": "OpenTabletDriver.Desktop.Binding.LinuxArtistMode.LinuxArtistModeButtonBinding",
|
||||
"Settings": [
|
||||
{
|
||||
"Property": "Button",
|
||||
"Value": "Pen Button 1"
|
||||
}
|
||||
],
|
||||
"Enable": true
|
||||
},
|
||||
{
|
||||
"Path": "OpenTabletDriver.Desktop.Binding.LinuxArtistMode.LinuxArtistModeButtonBinding",
|
||||
"Settings": [
|
||||
{
|
||||
"Property": "Button",
|
||||
"Value": "Pen Button 2"
|
||||
}
|
||||
],
|
||||
"Enable": true
|
||||
}
|
||||
],
|
||||
"AuxButtons": [
|
||||
{
|
||||
"Path": "OpenTabletDriver.Desktop.Binding.MultiKeyBinding",
|
||||
"Settings": [
|
||||
{
|
||||
"Property": "Keys",
|
||||
"Value": "Control+Z"
|
||||
}
|
||||
],
|
||||
"Enable": true
|
||||
},
|
||||
{
|
||||
"Path": "OpenTabletDriver.Desktop.Binding.MultiKeyBinding",
|
||||
"Settings": [
|
||||
{
|
||||
"Property": "Keys",
|
||||
"Value": "Control+Shift+Z"
|
||||
}
|
||||
],
|
||||
"Enable": true
|
||||
},
|
||||
{
|
||||
"Path": "OpenTabletDriver.Desktop.Binding.MultiKeyBinding",
|
||||
"Settings": [
|
||||
{
|
||||
"Property": "Keys",
|
||||
"Value": "Control+Minus"
|
||||
}
|
||||
],
|
||||
"Enable": true
|
||||
},
|
||||
{
|
||||
"Path": "OpenTabletDriver.Desktop.Binding.MultiKeyBinding",
|
||||
"Settings": [
|
||||
{
|
||||
"Property": "Keys",
|
||||
"Value": "Control+Shift+Equal"
|
||||
}
|
||||
],
|
||||
"Enable": true
|
||||
}
|
||||
],
|
||||
"MouseButtons": [],
|
||||
"MouseScrollUp": null,
|
||||
"MouseScrollDown": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"LockUsableAreaDisplay": true,
|
||||
"LockUsableAreaTablet": true,
|
||||
"Tools": []
|
||||
}
|
Loading…
Reference in a new issue