nix/home/file/keyd/module/Disable.nix

30 lines
417 B
Nix
Raw Normal View History

{
2024-11-04 04:37:29 +03:00
pkgs,
...
}: let
apps = [
"gimp"
"gimp-*"
"steam-proton"
2024-11-17 08:26:03 +03:00
"steam-app-*"
2024-11-04 04:37:29 +03:00
];
keys = [
"escape"
"leftcontrol"
];
in {
file = let
keySets = builtins.map (key: {
name = key;
value = key;
}) keys;
appSets = builtins.map (app: {
name = app;
value = builtins.listToAttrs keySets;
}) apps;
in
(pkgs.formats.ini { }).generate "KeydDisableConfig" (builtins.listToAttrs appSets);
}