Score:0

Keyboard layout selection menu on login screen Ubuntu 22.04

az flag

How do I allow keyboard layout selection menu in the login screen (Ubuntu 22.04)? Toggling this option on has been possible through settings, but I do not see this option in newer versions. How do I a allow it?

Gunnar Hjalmarsson avatar
uz flag
Assuming you are on standard Ubuntu, "newer versions" use GDM as the login manager instead of LightDM. Can you please elaborate and let us know what it is you want to achieve.
Mantic Mouse avatar
az flag
@GunnarHjalmarsson what does that mean? I have a computer with different users and two keyboards with different layouts. I want users to be able to choose the keyboard layout that works for them.
Gunnar Hjalmarsson avatar
uz flag
Ok. But is your concern the login screen itself (username/password) or the effective keyboard once logged in? As regards the latter, the keyboard layout set by the user at first login will stay as their layout once logged in.
Mantic Mouse avatar
az flag
@GunnarHjalmarsson no, the concern is during the login screen. If possible I would like a scroll down menu in the login screen to type the password in the preferred layout (similar to the top menu available after loggin in). See the linked question for picture examples.
Score:1
uz flag

I think you can achieve this by including the two layouts in question in the /etc/default/keyboard file. Example:

XKBLAYOUT="us,fr"
XKBVARIANT=","

That should result in a layout selector on the login screen, letting the users pick either the English (US) or the French layout.

Mantic Mouse avatar
az flag
Thanks! Note: `XKBVARIANT=","` has to be that way adding qwerty or any other options makes this answer not work.
Gunnar Hjalmarsson avatar
uz flag
@Mauricio: Not sure what you mean by "not work". If you want variants, you need to make `XKBVARIANT` reflect that. My example does not include variants. But I can elaborate the answer if you like.
Mantic Mouse avatar
az flag
I tried to add variants, but your answer did the work much better.
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.