nix/home/config/keyd/module/Disable.nix

29 lines
443 B
Nix

{ pkgs, ... }:
let
apps = [
"gimp"
"gimp-*"
"steam-proton"
];
keys = [
"escape"
"leftcontrol"
];
in
{
file = (pkgs.formats.ini { }).generate "KeydDisableConfig" (
builtins.listToAttrs (
builtins.map (app: {
name = app;
value = builtins.listToAttrs (
builtins.map (key: {
name = key;
value = key;
}) keys
);
}) apps
)
);
}