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.
installation.set_keyboard_languagedoes not translate over to desktop environments as discussed with @phisch.Traditionally I would have created something in '/etc/X11/xinit/xinit.rc
withsetxkbmap se` or similar.But something like:
Would work, we need to investigate how this translates over to
sddm,gdmandxinit.To get the currently supported list, I suggest using
localectl list-keymapsandlocalectl list-x11-keymap-layouts.As pointed out by @phisch:
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.