summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorWismill <dev@wismill.eu>2023-02-09 05:48:15 +0000
committerPeter Hutterer <peter.hutterer@who-t.net>2023-02-09 05:48:15 +0000
commit57894f08f8e6ed0eda0e3a7f7cf112c410022a94 (patch)
tree4c6e74e99cbb95014d906023fbe5bd609bf26cb4 /rules
parent6d9f17da14ac59c5e96f5b19367fe6081db2ec2f (diff)
downloadxkeyboard-config-57894f08f8e6ed0eda0e3a7f7cf112c410022a94.tar.gz
rules: add an option to use custom types & add locale to custom layout
A custom layout may define its own types or a user may want to overwrite existing types. This option activates the `custom` types file, which is user-provided. This is a follow-up to 5ca9f8aea2876fe6926fc27f564d36eaf5ca5c8d.
Diffstat (limited to 'rules')
-rw-r--r--rules/0044-o_t.part1
-rw-r--r--rules/base.xml15
2 files changed, 16 insertions, 0 deletions
diff --git a/rules/0044-o_t.part b/rules/0044-o_t.part
index aa12056..ce7ebe5 100644
--- a/rules/0044-o_t.part
+++ b/rules/0044-o_t.part
@@ -7,3 +7,4 @@
numpad:mac = +numpad(mac)
numpad:microsoft = +numpad(microsoft)
numpad:shift3 = +numpad(shift3)
+ custom:types = +custom
diff --git a/rules/base.xml b/rules/base.xml
index 1fab452..dd64294 100644
--- a/rules/base.xml
+++ b/rules/base.xml
@@ -6928,6 +6928,9 @@
<name>custom</name>
<shortDescription>custom</shortDescription>
<description>A user-defined custom Layout</description>
+ <languageList>
+ <iso639Id>und</iso639Id>
+ </languageList>
</configItem>
<variantList/>
</layout>
@@ -8293,5 +8296,17 @@
</configItem>
</option>
</group>
+ <group allowMultipleSelection="true">
+ <configItem>
+ <name>custom</name>
+ <description>Miscellaneous options</description>
+ </configItem>
+ <option>
+ <configItem>
+ <name>custom:types</name>
+ <description>Use user-defined custom XKB types</description>
+ </configItem>
+ </option>
+ </group>
</optionList>
</xkbConfigRegistry>