nixos/modules/base/keyd.nix

16 lines
369 B
Nix
Raw Normal View History

2025-05-06 23:10:08 +02:00
{...}: {
services.keyd = {
enable = true;
keyboards.default = {
ids = [ "*" ];
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)";
};
};
};
};
}