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 dbe5e01961
commit b6bd4d7956
2 changed files with 16 additions and 0 deletions

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";
};
};
};
};
}