From 5737cf1d24c868a55eafc59a51c000dc7f4f63f6 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 15 Apr 2019 18:20:50 +0200 Subject: use xkbcommon --- scripts/xkbname.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 scripts/xkbname.sh (limited to 'scripts') diff --git a/scripts/xkbname.sh b/scripts/xkbname.sh new file mode 100644 index 0000000..903c829 --- /dev/null +++ b/scripts/xkbname.sh @@ -0,0 +1,7 @@ +#!/bin/sh +cat /usr/include/xkbcommon/xkbcommon-keysyms.h \ + | awk '{ print $2 }' \ + | grep -e '^XKB_KEY_' \ + | while read key; do +printf '{ .code = %-24s, .name = "%s" },\n' "${key}" "${key#XKB_KEY_}" +done > xkbname.h -- cgit