summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-04-22 12:52:55 +1000
committerRan Benita <ran@unusedvar.com>2021-04-27 09:53:32 +0300
commitf434c690cc7f5e47f122f54fa13ec26a533090ac (patch)
tree3c16b0cebb6d2e50214ad7739d3f24ca76abb118 /scripts
parent693ffb073b92907730c987320558ff668707d8a9 (diff)
downloadxorg-lib-libxkbcommon-f434c690cc7f5e47f122f54fa13ec26a533090ac.tar.gz
tools: change xkbcli list to output YAML
We have a lot of keyboard layouts and the current output format is virtually useless at searching for a specific one to debug any issues with either the layout list or the output from libxkbregistry. Let's use YAML instead because that can easily be post-processed to extract the specific layouts wanted, e.g. to get the list of all layouts: xkbcli-list | yq -r ".layouts[].layout" to get the list of all variants of the "us" layout: xkbcli-list | yq -r '.layouts[] | select(.layout == "us") | .variant and the number of option groups: xkbcli-list | yq -r '.option_groups[] | length' Note that the top-level nodes have been de-capitalized, so where it was "Models" before it is now "models" and the "Options" node is now "option_groups". Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions