Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Apple keyboard that I simply love. I now hate my regular keyboard at work. I just have a small problem with the Apple keyboard. There is no "insert" key. The one that is usually Insert on regular keyboard is replaced by the "fn" key. I would like to keep the fn functionality, as it is useful with the Fx keys on the top of my keyboard. If I have another key that I want to remap, whoe can I get the code, and then assign the code to the "Insert" function ? I mainly use this key for clipboard stuff (Ctrl-Ins, Shift-Ins), and sometime I have no other option than use the mouse, which is something I want to avoid.

For example, the "Eject" button could be re-assigned, or use the F13..F19 keys, which are not on regular keyboards anyway.

share|improve this question
up vote 1 down vote accepted

It depends on where you want the remapping to be done, and which programs you want to detect it. Only in X GUI programs? Then xmodmap is probably enough. Also in command-line programs that you use in a terminal in X? Then xmodmap may be enough, but you may also have to configure your terminal program, and may also have to require your readline configuration (~/.inputrc) and may also have to supply your own terminfo definition and set TERM to this new definition. If you want the remapping to show up in Linux consoles (of the sort you get when you press Ctrl-Alt-F1), you need to do yet other things. Unfortunately, there is no simple, global interface for this.

I summarize some of the interfaces in (a bit) more detail here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.