Score:1

Can't change custom keyboard layout in Ubuntu 22.04

ng flag

I had a keyboard layout file in 18.04 (/usr/share/X11/xkb/symbols/us), where I defined additional characters. e.g.

...
    key <AD03> {        [         e,    E,      Greek_epsilon,  Greek_EPSILON]  };
...

This worked fine there. After switching to 22.04, this stopped working. To not change the whole file with an older version only the basic entry was edited.

xkb_symbols "basic" {

    name[Group1]= "English (US)";

When I pick the keyboard and check the layout, it appears correctly. (under the layout selection on the top bar)

keyboard layout shows the epsilon character

However, in the applications, I am not able to use the character. AltGr + E does not print any character. In some applications it even triggers some shortcuts. I tried also CTRL + SHIFT + E. Still no success. (I did relogin/rebooted to test the functionality.)

Gunnar Hjalmarsson avatar
uz flag
Have you defined AltGr as the "Alternate Characters Key"?
Genom avatar
ng flag
Thanks it did it. Can you submit it as an answer so that I can accept it? It is done under settings apparently. I have missed it completely.
Gunnar Hjalmarsson avatar
uz flag
Please feel free to submit an answer yourself. It's fine to answer your own question. ;)
Score:1
ng flag

Here is Gunnar's comment, which worked out for me. Under Settings/Keyboard there is a field for "Alternate Characters Key", which can be set to "Right Alt" (nothing political here, just the right "Alt" key on the keyboard). Setting for alternate key

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.