My good old Ubuntu used to detect my USB keyboard (having a different layout) with the command xinput -list
, get device id, and then issue the command setxkbmap -device "${ID}" -layout "${usbkbd_layout}"
to use it.
Under Ubuntu 17.10 (Wayland), things have got complicated. The command setxkbmap
works only for some apps, like Chromium, and not for GNOME core apps, like gedit, terminal, nautilus, etc.
What is the Wayland equivalent of setxkbmap
to change keyboard layout from command line?
0 Answers