keyboard: fix capslock backspace bind for some programs

This commit is contained in:
Leonardo Eugênio 2024-07-11 01:29:33 -03:00
parent 99a9adc489
commit ea235409b8
2 changed files with 16 additions and 0 deletions

View file

@ -22,6 +22,7 @@
./users.nix
./containers.nix
./network.nix
./keyboard.nix
../settings
];

15
system/keyboard.nix Normal file
View 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";
};
};
};
};
}