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