Remap Keys in Ubuntu [20.04]
·1 min·
- Open Terminal using
Ctrl
+Alt
+T
or from the app launcher - Navigate to the directory
/usr/share/X11/xkb/symbols
cd /usr/share/X11/xkb/symbols
- Edit the file named pc as an administrator or root user
sudo gedit pc
- Identify the two keys which you want to swap.
Note: You can only swap two keys here. You cannot assign same functionality to both the keys.
In my case, I have to swap the Right Control
key and Right Shift
key.
Now you can either log out and login or restart the shell by pressing Alt+F2
and running the restart command.
Thats it! You have remapped your keyboard keys successfully 🎉