NixOS-Config/modules/system/services/pc/keyd/default.nix

48 lines
825 B
Nix
Raw Normal View History

2024-10-18 20:26:32 -04:00
{ ... }:
{
services.keyd = {
enable = true;
keyboards.default = {
ids = [ "*" ];
settings = {
main = {
capslock = "overload(control,esc)";
2024-10-27 00:45:30 -04:00
leftcontrol = "overload(ctrlmod,noop)";
esc = "`";
rightcontrol = "esc";
left = "noop";
down = "noop";
up = "noop";
right = "noop";
};
2024-10-27 00:45:30 -04:00
control = {
h = "left";
j = "down";
k = "up";
l = "right";
g = "macro(C-h)";
2024-10-24 22:45:23 -04:00
semicolon = "macro(C-l)";
};
2024-10-27 00:45:30 -04:00
ctrlmod = {
backspace = "delete";
"1" = "f1";
"2" = "f2";
"3" = "f3";
"4" = "f4";
"5" = "f5";
"6" = "f6";
"7" = "f7";
"8" = "f8";
"9" = "f9";
"0" = "f10";
"-" = "f11";
"=" = "f12";
};
2024-10-18 20:26:32 -04:00
};
};
};
}