Keyd: Disable some keys in Gimp and games.
This commit is contained in:
parent
86e422dbf7
commit
493ef5ae02
|
@ -1,19 +1,27 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
disable = [
|
apps = [
|
||||||
|
"gimp-*"
|
||||||
|
"steam-proton"
|
||||||
|
];
|
||||||
|
|
||||||
|
keys = [
|
||||||
|
"escape"
|
||||||
|
"leftcontrol"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
file = (pkgs.formats.ini { }).generate "KeydDisableConfig" (
|
file = (pkgs.formats.ini { }).generate "KeydDisableConfig" (
|
||||||
builtins.listToAttrs (builtins.map (app:
|
builtins.listToAttrs (
|
||||||
{
|
builtins.map (app: {
|
||||||
name = app;
|
name = app;
|
||||||
value = {
|
value = builtins.listToAttrs (
|
||||||
"capslock" = "capslock";
|
builtins.map (key: {
|
||||||
"escape" = "escape";
|
name = key;
|
||||||
"leftcontrol" = "leftcontrol";
|
value = key;
|
||||||
};
|
}) keys
|
||||||
}
|
);
|
||||||
) disable)
|
}) apps
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue