Ubuntu – How to set the keyboard layout to work like the Windows mnemonic Russian keyboard


This is the mnemonic Russian keyboard in Windows.


while this is the phonetic Russian layout in Ubuntu.


In Windows there are some Russian characters mapped in different keys and also:

From Wikipedia:

Windows 10 includes its own implementation of a mnemonic QWERTY-based
input method for Russian, which does not fully rely on assigning a key
to every Russian letter, but uses the sh, sc, ch, ya (ja), yu (ju), ye
(je), yo (jo) combinations to input ш, щ, ч, я, ю, э and ё

Best Answer

One way to come close to the desired behavior is to

  1. Define a compose key
  2. Create the file ~/.XCompose
  3. Add the desired compose sequences to ~/.XCompose
  4. Relogin

I tested it with a ~/.XCompose file with only this line:

<Multi_key> <Cyrillic_es> <Cyrillic_ha> : "ш" Cyrillic_sha # CYRILLIC SMALL LETTER SHA

When using the Russian (phonetic) keyboard layout it lets me do:

Compose followed by С followed by Х -> ш

Related Question