From 762d766db51669dca6813621f15af35ef45787eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sun, 27 Oct 2024 15:45:18 +0100 Subject: [PATCH] keyboards: add urdu keyboard --- configs/keyboard.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configs/keyboard.nix b/configs/keyboard.nix index dcf0d0c0..8bf5f073 100644 --- a/configs/keyboard.nix +++ b/configs/keyboard.nix @@ -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; @@ -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; + } + ] )) ]; };