I use Trisquel 7.0 LTS (Comes with GNOME 3 Flashback). I visited some post like this and this. on the topic about adding custom compose key sequence.

I set Menu Key as Compose Key:


I created ~/.Xcompose containing:

$ cat ~/.Xcompose 
include "%L"   # import the default Compose file for your locale
<Multi_key> <r> <r>     : "ñ" U00F1

Also added export GTK_IM_MODULE="xim" at the end of ~/.profile. I tried after logging out and login back, also restarting many times but it is not working.

The default compose key sequences (/usr/share/X11/locale/en_US.UTF-8/Compose) e.g. Menu, s, s = ß is working fine.

I also tried to add custom key sequence:-

<Multi_key> <s> <d>                 : "ñ"   U00F1

At the end of /usr/share/X11/locale/en_US.UTF-8/Compose but it is also not working.

Thus, Why my custom compose sequence is not working? What am I missing?


I've installed uim and set GTK_IM_MODULE="uim" instead of xim by export GTK_IM_MODULE="uim" at ~/.profile after restarting session, I found that Manually set custom key sequence in /usr/share/X11/locale/en_US.UTF-8/Compose is working now. BUT still defined sequence in ~/.Xcompose is not working.

BTW, what is xim and uim relation to input method and why uim is working and xim is not in my case?


1 Answer 1


It was my mistake that I created .Xcompose instead of .XCompose! (see question that every times mentions .Xcompose).

Now all custom compose key sequences that are defined in ~/.XCompose are working well.

Not the answer you're looking for? Browse other questions tagged or ask your own question.