Setxkbmap -layout uk: Error loading new keyborad description

Hello,

I have a second keyboard with a different layout (a uk layout).
I would like to change the layout, so I use the setxkbmap -layout uk command.
And it returns:
Error loading new keyborad description
I tried a few other layouts (us, it,…) to see what happens and there is no problem with them.

Thanks for your help.

I do not have a uk layout keyboard, but maybe setxkbmap -layout gb is for uk layout.

Hi,
thanks! Yes, it works.
What is strange to me is that `localectl list-keymaps returns a list with uk but not gb. But probably I’m mixing things.
Anyway, thanks!

According to man page, that command is for console. For X11 you can use localectl list-x11-keymap-layouts.

EDIT: or open /usr/share/X11/xkb/rules/base.lst according to Arch Wiki.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.