Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi all,

in reply to myself, here's how I got it working.

Note: This is most probably a dumb, non-elegant, "brute-force" like approach to remap keys that might work just for me. It may not be applicable to YOUR use case and has some drawbacks (see below for details).

After reading this post I went to just edit the contents of /usr/share/X11/xkb/keycodes/evdev.

In that file I looked for the key 'names' and changed the assigned scancodes as per my needs. Actually rather self-explaining. The changes are also persistent across boots / logins.

Drawbacks:

  • Doesn't work in console
  • Isn't hardware-specific I think (means: It probably is apllied to all attached keyboards)
  • It is not system-wide (means: it is per user. Uhm, probably considered as an advantage by some folks?)
  • Thunderbird seems to not react when pressing delete. Could be caused by something else though.

Anyway, hope it will help someone. Feel free to improve solution/answer by commenting. I'm a noob when it comes to Linux so don't expect this post to be the perfect kinda solution.

Regards, Thomas