Ubuntu – How to remap the caps lock key to the backspace key

colemakkeyboardremappingxmodmap

I have grown very comfortable to my Colemak keyboard layout (my typing speed has doubled since I started using it). My only problem with it is that there is no caps lock key because under this layout because the caps lock key is a second backspace key. I really miss caps lock so I would like to change the backspace key on the top right corner of my keyboard (not the one right next to the "a") into a caps lock key. Is there a way to do this using xmodmap or some other tool? I am using Xfce.

Best Answer

I figured it out. This link was very helpful: https://butterflyofdream.wordpress.com/2012/09/10/how-to-assign-capslock-on-backspace-key-in-colemak/

Changing the backspace key to a caps lock key is as simple as typing this on the console:

xmodmap -e "keycode 22 = Caps_Lock"