add input remapping module with easier configuration

This commit is contained in:
Schrottkatze 2024-03-05 13:10:08 +01:00
parent 01d070eb40
commit 991cc8fc88
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
7 changed files with 161 additions and 89 deletions

View file

@ -26,7 +26,22 @@
social.enable = true;
mail.enable = true;
gaming.enable = true;
evremap.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"];
}
];
};
};
terminal.enable = true;
};