new mouse

This commit is contained in:
Schrottkatze 2025-06-27 00:22:02 +02:00
parent 06117eee83
commit 5c1df5b423
Signed by: schrottkatze
SSH key fingerprint: SHA256:/raZeWZ2RLThYkX/nq26frnmA4Bi3qRM/hijRmDBa10
3 changed files with 41 additions and 0 deletions

View file

@ -2,5 +2,6 @@
{
imports = [
./graphics.nix
./input.nix
];
}

View file

@ -0,0 +1,37 @@
{ ... }:
{
jade.input.remapping = {
enable = true;
devices."SOAI USB Gaming Mouse Keyboard".remap = [
{
input = [ "KEY_A" ];
output = [
"KEY_LEFTMETA"
"KEY_H"
];
}
{
input = [ "KEY_D" ];
output = [
"KEY_LEFTMETA"
"KEY_L"
];
}
{
input = [ "KEY_W" ];
output = [
"KEY_LEFTMETA"
"KEY_G"
];
}
{
input = [ "KEY_S" ];
output = [
"KEY_LEFTMETA"
"KEY_LEFTCTRL"
"KEY_G"
];
}
];
};
}