Is there a way to avoid such situations? For Ubuntu/Linux, you can use a key lock indicator to display your key lock status on screen. Here we show you two such tools: Lock-Keys and Keyboard Modifiers Status extensions.

1. Lock-Keys Extension

The lock-keys tool is basically a Gnome extension tool that is primarily designed for keyboards that do not have the lock key LED lights. It works by simulating the key locks, showing an indicator on the Desktop and a status on Ubuntu top bar. The tool also allows users to toggle the state of the lock keys with mouse clicks, something that could also be really helpful in scenarios where the keyboard starts malfunctioning.

Install and Configuration

We are going to use the gnome-extensions to enable the lock-keys tool. For this, we need to install various requirements. Launch the terminal and enter the command: Once we have the Gnome shell extensions installed, we can proceed and add the lock-key indicator tool. Launch the Firefox browser and navigate to the lock-keys download page. On the download page, Firefox requires you to install the browser extension which allows you to install gnome extensions straight from the browser. Click continue to installation and allow to install the browser extension, then refresh the browser window with an On/Off Button.

Fix Host Connector Error!

In some instances, you may encounter an error indicating that the host connector is not detected. To fix this, you need to install the chrome-gnome-shell. Use the command Note: if you refresh the browser window and still get a host connector error, try logging out and back in again.

Install Lock Keys Extension

The final step is to install the lock keys extension. In the browser window, simply click the on switch to activate the extension. This will ask you whether you want to install the extension. Click install to proceed with the installation process.

Configure Keys

Once the installation is completed, you should see the lock keys enabled and available in the top bar. You should now get an indicator showing when the keys are enabled or disabled. If you do not want the indicator icons on the top bar, you can turn them off by configuring the extension settings. Start by opening the gnome-extensions tool from Ubuntu applications. Next, select the lock keys option and click on the settings icon. Finally, set the indicator style to notifications only. This will remove the top bar icons and only show the key toggles on the screen.

2. Keyboard Modifiers Status

You may get errors or the Lock keys extension may not work depending on the distribution you are running or the Gnome version. An alternative solution is to use the Keyboard Modifier Status tool. Launch Firefox and navigate to the Keyboard Modifiers Status extension page. Similarly, toggle the On/Off option to activate the extension. Once the extension is installed, you should have the key indicator enabled and available in the top bar for configuration.

Wrapping Up

Needless to say, lock-keys and keyboard-modifier-status tools are extremely useful tools, especially for those whose keyboard does not have lock key lights. Plus, they are easy to install and use. Also check out these extensions that make your Gnome desktop easier to use.