philip1
November 12, 2021, 2:24pm
1
Where is the setting for the keyboard layout of the login screen?
The GNOME login screen does not have the option to change the keyboard layout, and it uses the secondary layout (us) rather than the primary layout (dvorak) even though my /etc/X11/xorg.conf.d/00-keyboard.conf is:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "dvorak,us"
EndSection
gdm uses x11 keymap instead of the keymap set in gnome.
to set x11 keymap, use localectl
. See localectl --help
(as for your 00-keyboard.conf, it seems to be in the wrong format. the correct format for dvorak would be:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" <model>
Option "XkbVariant" "dvorak"
EndSection
<model> is the keyboard type, i believe the default is pc105
)
1 Like
philip1
November 12, 2021, 7:04pm
3
@anon91923227 , I reformatted my initial post. Does that resolve the “wrong format”?
philip1
November 12, 2021, 7:08pm
5
@anon91923227 , yes indeed. I do not edit the file /etc/X11/xorg.conf.d/00-keyboard.conf. Rather, it was the result of the command
localectl set-x11-keymap dvorak,us
. Then,
localectl set-x11-keymap dvorak
updates the file /etc/X11/xorg.conf.d/00-keyboard.conf
to
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "dvorak"
EndSection
However this does not change the login screen nor the consoles, which remain in US QWERTY.
set it like this: localectl set-x11-keymap us pc105 dvorak
for the consoles: localectl set-keymap dvorak
1 Like
philip1
November 12, 2021, 7:18pm
7
Ah that gives me a 00-keyboard.conf that resembles yours. Will try it out.
Thank you!
please give feedback (did it work?), and please change category to Q&A
philip1
November 14, 2021, 1:54pm
11
localectl set-x11-keymap us pc105 dvorak
did change the login screen as well as the virtual consoles. Thank you!
1 Like