Keyd : Add a template to disable it per-app.
This commit is contained in:
parent
c3c40ed6f6
commit
96f62a0ac9
19
home/config/keyd/module/Disable.nix
Normal file
19
home/config/keyd/module/Disable.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
disable = [
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
file = (pkgs.formats.ini { }).generate "KeydDisableConfig" (
|
||||||
|
builtins.listToAttrs (builtins.map (app:
|
||||||
|
{
|
||||||
|
name = app;
|
||||||
|
value = {
|
||||||
|
"capslock" = "capslock";
|
||||||
|
"escape" = "escape";
|
||||||
|
"leftcontrol" = "leftcontrol";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
) disable)
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in a new issue