create input module for catbook-j
This commit is contained in:
parent
d002a100dd
commit
14adf2731f
3 changed files with 33 additions and 25 deletions
5
hosts/catbook-j/modules/default.nix
Normal file
5
hosts/catbook-j/modules/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./input.nix
|
||||
];
|
||||
}
|
27
hosts/catbook-j/modules/input.nix
Normal file
27
hosts/catbook-j/modules/input.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue