mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
16 lines
364 B
Nix
16 lines
364 B
Nix
_: {
|
|
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)";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|