From 42dd72f1d439bdd5fb607ee26b3bcf2650132728 Mon Sep 17 00:00:00 2001 From: Daniel Kauss Serna Date: Sun, 22 Feb 2026 18:43:12 +0100 Subject: [PATCH] tablet config --- config/tablet.json | 143 ++++++++++++++++++++++++++++++++++++++++ nixos/configuration.nix | 4 +- nixos/programs.nix | 8 ++- 3 files changed, 151 insertions(+), 4 deletions(-) create mode 100644 config/tablet.json diff --git a/config/tablet.json b/config/tablet.json new file mode 100644 index 0000000..74ea97d --- /dev/null +++ b/config/tablet.json @@ -0,0 +1,143 @@ +{ + "Revision": "0.6.6.2", + "Profiles": [ + { + "Tablet": "Huion H1060P", + "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": 254.0, + "Height": 158.75, + "X": 127.0, + "Y": 79.375, + "Rotation": 0.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": "OpenTabletDriver.Desktop.Binding.MouseBinding", + "Settings": [ + { + "Property": "Button", + "Value": "Left" + } + ], + "Enable": true + }, + "EraserActivationThreshold": 0.0, + "EraserButton": null, + "PenButtons": [ + { + "Path": "OpenTabletDriver.Desktop.Binding.KeyBinding", + "Settings": [ + { + "Property": "Key", + "Value": "E" + } + ], + "Enable": true + }, + { + "Path": "OpenTabletDriver.Desktop.Binding.LinuxArtistMode.LinuxArtistModeButtonBinding", + "Settings": [ + { + "Property": "Button", + "Value": "Pen Button 1" + } + ], + "Enable": true + } + ], + "AuxButtons": [ + null, + null, + null, + null, + null, + null, + { + "Path": "OpenTabletDriver.Desktop.Binding.MultiKeyBinding", + "Settings": [ + { + "Property": "Keys", + "Value": "Control+Plus" + } + ], + "Enable": true + }, + { + "Path": "OpenTabletDriver.Desktop.Binding.MultiKeyBinding", + "Settings": [ + { + "Property": "Keys", + "Value": "Control+Subtract" + } + ], + "Enable": true + }, + { + "Path": "OpenTabletDriver.Desktop.Binding.KeyBinding", + "Settings": [ + { + "Property": "Key", + "Value": "Space" + } + ], + "Enable": true + }, + null, + { + "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 + } + ], + "MouseButtons": [], + "MouseScrollUp": null, + "MouseScrollDown": null, + "DisablePressure": false, + "DisableTilt": false + } + } + ], + "LockUsableAreaDisplay": true, + "LockUsableAreaTablet": true, + "Tools": [] +} \ No newline at end of file diff --git a/nixos/configuration.nix b/nixos/configuration.nix index dd44885..c84a5a3 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -9,7 +9,7 @@ users.users.daniel = { isNormalUser = true; description = "Daniel"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel"]; }; users.defaultUserShell = pkgs.zsh; @@ -18,7 +18,7 @@ rebuild-test = "sudo nixos-rebuild test --flake ~/Documents/Nix/pc-config/nixos#daniel"; rebuild-dry = "nixos-rebuild dry-run --flake ~/Documents/Nix/pc-config/nixos#daniel"; - to-public = "ssh -r danielk.me:/var/www/danielk.me/public"; + cppublic = "scp \"!*\" danielk.me:/var/www/danielk.me/public"; }; nix.settings.experimental-features = [ "nix-command" "flakes" ]; diff --git a/nixos/programs.nix b/nixos/programs.nix index 2df7db5..40ab428 100644 --- a/nixos/programs.nix +++ b/nixos/programs.nix @@ -7,8 +7,6 @@ localsend krita aseprite - godot - godotPackages.export-template audacity steam libreoffice @@ -20,6 +18,12 @@ programs.zsh.enable = true; programs.git.enable = true; programs.firefox.enable = true; + programs.direnv.enable = true; + programs.direnv.nix-direnv.enable = true; + + hardware.opentabletdriver.enable = true; + hardware.uinput.enable = true; + boot.kernelModules = [ "uinput" ]; environment.systemPackages = with pkgs; [ neovim