I have seen that XGetKeyboardMapping()
would let me do that, but the documentation is opaque and I haven’t been able to find any examples. Any idea?
You are looking for:
KeyCode XKeysymToKeycode(display, keysym) Display *display; KeySym keysym;
keycode1 = XKeysymToKeycode(display, XK_dead_acute);