blob: 903c8297b14ab3d29a5ce67a48864965848e3ddf (
plain)
1
2
3
4
5
6
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
|