Search code examples
keyboard-shortcutsx11xorg

Getting X client to reload .Xcompose?


Fedora 20, xorg 1.14.4-11.

I run with a lot of terminal windows open, and I make heavy use of the compose/multi-key mechanism. One of the most frustrating things is that after altering my ~/.Xcompose file, I need to start new terminal windows in order to see the changes.

Is there any way to get X clients to reload ~/.Xcompose rather than just the once when they start? Particularly terminal apps and XChat?

Thanks!


Solution

  • In order to reload `~/.Xcompose´ one needs to close and then re-open the input method:

     XCloseIM (im);
     im = XOpenIM (display, ...);
    

    Normally X11 clients never do that, so there appears to be no way to make existing programs reload the file. You can make it happen in your own programs.