keyboard: fix capslock backspace bind for some programs
This commit is contained in:
parent
99a9adc489
commit
ea235409b8
|
@ -22,6 +22,7 @@
|
||||||
./users.nix
|
./users.nix
|
||||||
./containers.nix
|
./containers.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
|
./keyboard.nix
|
||||||
../settings
|
../settings
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
15
system/keyboard.nix
Normal file
15
system/keyboard.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
services.keyd = {
|
||||||
|
enable = true;
|
||||||
|
keyboards.default = {
|
||||||
|
ids = [ "*" ];
|
||||||
|
settings = {
|
||||||
|
"main" = {
|
||||||
|
# Some programs don't respect colemaks capslock bind, so we force it here
|
||||||
|
"capslock" = "backspace";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue