Skip to content

Commit

Permalink
keyboards: add urdu keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
kmein committed Oct 27, 2024
1 parent 812c795 commit 762d766
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions configs/keyboard.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
lib,
...
}: let

commaSep = builtins.concatStringsSep ",";
xkbOptions = ["compose:caps" "terminate:ctrl_alt_bksp" "grp:ctrls_toggle"];
languages = {
deutsch = { code = "de"; variant = "T3"; };
greek = { code = "gr"; variant = "polytonic"; };
russian = { code = "ru"; variant = "phonetic"; };
arabic = ../lib/keyboards/arabic;
arabic = { code = "ara"; variant = "buckwalter"; }; # ../lib/keyboards/arabic;
coptic = ../lib/keyboards/coptic;
avestan = ../lib/keyboards/avestan;
gothic = ../lib/keyboards/gothic;
farsi = { code = "ir"; variant = "qwerty"; };
sanskrit = { code = "in"; variant = "san-kagapa"; };
gujarati = {code = "in"; variant = "guj-kagapa"; };
urdu = {code = "in"; variant = "urd-phonetic"; };
hebrew = {code = "il"; variant = "phonetic";};
};
defaultLanguage = languages.deutsch;
Expand All @@ -37,7 +40,12 @@ in {
lib.mapAttrsToList (name: value: {
name = "symbols/${name}";
path = value;
}) (lib.filterAttrs (_: value: builtins.typeOf value == "path") languages)
}) (lib.filterAttrs (_: value: !(value ? "code")) languages) ++ [
{
name = "symbols/ir";
path = ../lib/keyboards/farsi;
}
]
))
];
};
Expand Down

0 comments on commit 762d766

Please sign in to comment.