create input module for catbook-j

This commit is contained in:
Schrottkatze 2024-03-06 11:31:47 +01:00
parent d002a100dd
commit 14adf2731f
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
3 changed files with 33 additions and 25 deletions

View file

@ -15,6 +15,7 @@
./hardware-configuration.nix
../../common.nix
../../modules
./modules
];
jade = {
desktop = {
@ -25,29 +26,6 @@
mail.enable = true;
gaming.enable = true;
};
input.remapping = {
enable = true;
devices."AT Translated Set 2 keyboard" = {
swapKeys = [
["KEY_Y" "KEY_Z"]
["KEY_LEFTALT" "KEY_LEFTMETA"]
];
dual_role = [
{
input = "KEY_CAPSLOCK";
hold = ["KEY_LEFTCTRL"];
tap = ["KEY_ESC"];
}
];
};
};
};
hardware.trackpoint = {
enable = true;
# device = "MELF0410:00 1FD2:7007";
device = "DELL081C:00 044E:121F Mouse";
sensitivity = 255;
};
hardware.usb-modeswitch.enable = true;
@ -81,8 +59,6 @@
hardware.bluetooth.enable = true;
services.blueman.enable = true;
services.xserver.libinput.touchpad.tapping = false;
environment.systemPackages = [
pkgs.plantuml
pkgs.mqttui

View file

@ -0,0 +1,5 @@
{...}: {
imports = [
./input.nix
];
}

View file

@ -0,0 +1,27 @@
{...}: {
# key remapping
jade.input.remapping = {
enable = true;
devices."AT Translated Set 2 keyboard" = {
swapKeys = [
["KEY_Y" "KEY_Z"]
["KEY_LEFTALT" "KEY_LEFTMETA"]
];
dual_role = [
{
input = "KEY_CAPSLOCK";
hold = ["KEY_LEFTCTRL"];
tap = ["KEY_ESC"];
}
];
};
};
hardware.trackpoint = {
enable = true;
device = "TPPS/2 IBM TrackPoint";
sensitivity = 220;
};
services.xserver.libinput.touchpad.tapping = false;
}