Score:0

Keyboard layout visualization not working

cn flag

I'm creating a custom keyboard layout. I've added it to the symbols and rules files and I can now select it from the keyboard layout widget. However, if I click "Show Keyboard Layout" nothing happens. It could be something I did wrong in the symbols file, but I have no way to debug it. Other layouts in the same country code are also not showing.

If I click "Show Keyboard Layout" for US English, or Dvorak it works fine.

Any idea how to debug this?

Sadaharu Wakisaka avatar
pl flag
Welcome to AskUbuntu. The pictures of Keyboard Layout in the settings are like the food samples on the restaurant. They are not serious and they just look like it. When I select a PC105 US layout, it shows an ISO keyboard, doesn't matter the ANSI or TKL. When you swap the Control with CapsLock, neither does it.
ventsyv avatar
cn flag
@SadaharuWakisaka I find it useful for creating custom layouts. Also, it's the only way I know to validate the layout I've created.
Score:0
cn flag

Turns out you can use xkbcomp to compile the symbols files. If something is not working, it will give you a line error.

xkbcomp /usr/share/X11/xkb/symbols/<code>

In my case I had some junk at the end of the file. After removing it, everything is now working fine.

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.