2

How to set keyboard layout switching on Wayland (Ubuntu 22.04) with Ctrl+1 for Language1, Ctrl+2 for Language2, etc.

For exaple:

  • Ctrl+1 for English
  • Ctrl+2 for French
  • Ctrl+3 for German.

This question is already on this site (link), but the command has no effect on Wayland (Ubuntu 22.04).

Please tell me how to do the same on Wayland (Ubuntu 22.04).

One more thing: please make the instructions as simple as possible, because I am new to Linux. If the instruction is something like "decompile the Linux kernel and write some simple assembly language commands in it", I will definitely fail. Thus, please give me the easiest instruction possible.

Enot
  • 21
  • 1
  • 5
  • Does this answer your question? [How to set keyboard switch with Ctrl+1, Ctrl+2, Ctrl+3 etc](https://askubuntu.com/questions/655043/how-to-set-keyboard-switch-with-ctrl1-ctrl2-ctrl3-etc) – vanadium May 29 '22 at 15:21
  • There *is* setxkbmap working on Wayland, and it is by default installed on Ubuntu 22.04 – vanadium May 29 '22 at 15:22
  • @vanadium Thank you, but it does not work on my Ubuntu 22.04, see the [screenshot](https://i.imgur.com/zJ3VEDC.jpg). The languages are only switched with Super+Space. – Enot May 30 '22 at 15:55
  • Indeed; I can confirm: the command has no effect on Wayland. However, edit your question to change "But there is no setxkbmap on Wayland!" because the command is available in a default install. – vanadium May 30 '22 at 16:12
  • I edited my question, thanks for the tip. Sorry, I really did not know that setxkbmap is in Ubuntu 22.04. I thought the command did not work because Wayland does not have setxkbmap, but I was wrong. Sorry. – Enot May 31 '22 at 07:02

0 Answers0