Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting X client to reload .Xcompose?

Tags:

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!

like image 656
RoUS Avatar asked Dec 12 '14 16:12

RoUS


1 Answers

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.

like image 171
n. 1.8e9-where's-my-share m. Avatar answered Oct 28 '22 10:10

n. 1.8e9-where's-my-share m.