Rabu, 29 November 2023

Change Keyboard Layout in Ubuntu

Change Keyboard Layout in Ubuntu

When you install Ubuntu, you get to choose the keyboard. You may have gone with the default choice of English US and now you want to change it to English UK or India or any other keyboard of your choice.

The good thing is that you can have multiple keyboard layouts in the same Ubuntu system. This is quite convenient.

In this tutorial, you'll learn to:

  • Add new keyboard layouts in Ubuntu desktop
  • Switch between the available keyboards
  • Remove Additional keyboards
  • Command line method of changing keyboard layout

Step 1: Add new keyboard layout

To change the keyboard layout, you need to have another keyboard layout enabled on your system first.

Go to system settings. Press the Super key in Ubuntu (Windows symboled key) and search settings.

Change Keyboard Layout in Ubuntu

In the system settings, look for Keyboard in the left sidebar. Once you select that, you should see the option of adding a new keyboard under the Input Sources section. Click the + sign.

Change Keyboard Layout in Ubuntu
Add new keyboard layout

You'll be presented with a few keyboard options but you can get a lot more if you click on the three dots. You can scroll through or search by typing the in here.

Click on your desired keyboard. Keep in mind that the selected keyboard layout may have sub-layouts.

For example, when I click on English (India) it shows me a number of English keys from Denmark to Ghana or what not. In here, I chose the English (India, with rupee) keyboard. This is the keyboard layout that will be added.

Change Keyboard Layout in Ubuntu

You'll see the newly added keyboard layout under the Input Sources section.

Change Keyboard Layout in Ubuntu

This is the same method I used for adding a Hindi keyboard in Ubuntu earlier.

Step 2: Switching keyboards

So, you have successfully added another keyboard. But it is not in use. You have to switch between the available input sources.

There are two ways of doing it.

Method 1: Use Super+Space keys together

The quicker method for switching the keyboards to use keyboard shortcuts in Ubuntu. Press the Super key (Windows key) and Space together. It will momentarily show all the enabled keyboard layouts.

Change Keyboard Layout in Ubuntu

You can press Space key multiple times while holding the Super key to move between the available options.

Method 2: Use mouse to switch keyboards

It's not easy to remember all these keyboard shortcuts and that's understandable.

When you have more than one keyboards enabled on the system, you'll notice that the keyboard name is being displayed in the top right corner of the panel. Click on it and you'll see the option to switch between the layouts or see the selected keyboard layouts.

Change Keyboard Layout in Ubuntu
Switch between keyboard layouts

Bonus Tip: Remove additional keyboard

Not liking multiple keyboards in your system? No worries. You can easily remove them.

Go to the keyboard settings once again as you saw previously. Click on the three vertical dots symbol next to the keyboard of your choice. You should see the remove option here.

Change Keyboard Layout in Ubuntu

If you are a desktop user, I strongly recommend the graphical method discussed above.

If you are on a server and you must use some other keyboard layout, you could opt for the command line.

Now, there are multiple ways to change the keyboard layout in Linux. But for Ubuntu, I prefer the dpkg way.

sudo dpkg-reconfigure keyboard-configuration

Enter your password and you shall see this in your terminal:

Change Keyboard Layout in Ubuntu

To navigate in this TUI (terminal user interface), use the arrow keys to move between the available options. Use the tab key to go to the <OK> or <Cancel> options. When you are at one of them, press enter to confirm your choice.

Go with the country of your choice and then you'll have the option to choose the keyboard layout.

When you have added the additional keyboard, you'll be asked to assign a keyboard shortcut to switch between them.

Change Keyboard Layout in Ubuntu

You may also go and make the new keyboard the default and the only layout in the system. Though this could be risky if you do it between languages that are not similar. I mean if you use English US keyboard (physical) and you switch the layout to Hungarian, you won't have all the keys available.

You'll be seeing several screens afterward.

If you are not happy with the new keyboard layout, you can type the same command again and then reconfigure the layout.



from It's FOSS https://ift.tt/FUxMth2
via IFTTT

Tidak ada komentar:

Posting Komentar