Skip to content

Instantly share code, notes, and snippets.

@ifreund
ifreund / generator.cpp
Created January 7, 2024 01:41 — forked from alebastr/generator.cpp
`XKB_KEYSYM_NO_FLAGS` vs `XKB_KEYSYM_CASE_INSENSITIVE`
// const char *key_names [] = {
// `sed -En 's/^#.*XKB_KEY_(\w*).*/"\1",/p' /usr/include/xkbcommon/xkbcommon-keysyms.h |sort -u`
// };
//
// g++ $(pkg-config --libs --cflags xkbcommon) generator.cpp
#include <cstdio>
#include <cstdlib>
#include <xkbcommon/xkbcommon.h>