diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-15 18:20:50 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-15 18:20:50 +0200 |
commit | 5737cf1d24c868a55eafc59a51c000dc7f4f63f6 (patch) | |
tree | ef9c8e8fa95723b586fa882b1222e0daac91ad3d /scripts | |
parent | 168c57b57f2fb4440943d4e672dee4ca34f060b8 (diff) | |
download | fbida-5737cf1d24c868a55eafc59a51c000dc7f4f63f6.tar.gz |
use xkbcommon
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/xkbname.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |