nixos/modules/base/keyd.nix

17 lines
364 B
Nix
Raw Normal View History

2025-05-06 23:10:41 +02:00
_: {
2025-05-06 23:10:08 +02:00
services.keyd = {
enable = true;
keyboards.default = {
2025-05-06 23:10:41 +02:00
ids = ["*"];
2025-05-06 23:10:08 +02:00
settings = {
main = {
# Bind mouse-foward to meta+middlemouse if held
mouse2 = "timeout(mouse2, 150, M-middlemouse)";
# Bind mouse-back to meta if held
mouse1 = "overload(meta, mouse1)";
};
};
};
};
2025-05-06 23:10:41 +02:00
}