tools: add xkbcli-scaffold-new-layout as helper tool
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 10 Jul 2020 01:32:48 +0000 (11:32 +1000)
committerRan Benita <ran@unusedvar.com>
Sun, 30 Aug 2020 18:49:41 +0000 (21:49 +0300)
commitd00cf64dbc586a1052e1f0d0e7f1a48bbff293ec
treea7d6fe367bad55b1ae0cc3c73722ddc6d8ebf664
parentd7b39f6ffbe9b46181c5597b0d0e7373eb2e9070
tools: add xkbcli-scaffold-new-layout as helper tool

This tool set ups the required directory structure and template files to add new
keyboard layouts or options. For example, run like this:

    xkbcli-scaffold-new-layout  --layout 'us(myvariant)' --option 'custom:foo'

This will up the evdev rules file, the evdev.xml file, the symbols/us file and
symbols/custom file in $XDG_CONFIG_HOME so that the user has everything in place
and can start filling in the actual key mappings.

This tool is currently uninstalled until we figure out whether it's useful.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
tools/xkbcli-scaffold-new-layout.py [new file with mode: 0755]