Skip to content

Setting keyboard layout doesn't translate over to X11 #107

@Torxed

Description

@Torxed

installation.set_keyboard_language does not translate over to desktop environments as discussed with @phisch.
Traditionally I would have created something in '/etc/X11/xinit/xinit.rcwithsetxkbmap se` or similar.

But something like:

$ localectl set-keymap "" && localectl set-keymap de
$ localectl set-keymap de && localectl set-x11-keymap de

Would work, we need to investigate how this translates over to sddm, gdm and xinit.


To get the currently supported list, I suggest using localectl list-keymaps and localectl list-x11-keymap-layouts.
As pointed out by @phisch:

VC and X11 keymaps are also different standards

The "languages" if you will don't follow the same naming convention, making it ridiculously hard to make a one-shot-function to set these things. Either we'll need to ask the user two times for language selection, or manually keep a translation table up to date (I see this backfiring in the future). We would only need to ask users twice if they opted in for a desktop environment tho, which most new users probably would do.

Any suggestions on how to solve this as cleanly as possible are welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedIssue is fixed in the current or next release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions