Profile pic of Tommy Ku Tommy Ku's Blog

Reading and thinking

Remapping Insert to Delete key on Ubuntu 20.04

Posted on   by  Tommy Ku

This post is more than 2 years old, it may contain outdated information

Delete key has lot a keycap, replaced by tape
Filmsy keycap of Lenovo ThinkPad's Delete key has broken

I tried a few out-dated methods using xmodmap{: .language-} and getting ~/.xinitrc{: .language-} to run on startup but even if .xinitrc{: .language-} is executed, the key is still not mapped.

At the end I stumbled upon this answer when I was about to give up, and it worked.

I needed to change /usr/share/X11/xkb/symbols/pc{: .language-} with as root to modify the behavior of Insert key to Delete. Saved the file, reboot and it worked like a charm.

-    key  <INS> {	[  Insert		]	};
+    key  <INS> {	[  Delete		]	};

You could also look at...

This post first appeared on  . Permalink:

About the author

Profile pic of Tommy Ku

Tommy Ku, a  Hong Kong-based  Software Engineer experienced developing PHP and Java-based web solutions and passionate in Web technology.

Also a hobbyist digital and film photographer.