Possible Duplicate:
Remap CapsLock to Escape and Control System Wide
Just read this seriously obsessive post about customising keyboards and while I'm not going to do everything there, there are a couple of ideas I'd like to nick. In particular he has set up the Caps Lock key so that:
- when pressed and released alone, it is mapped to Esc
- when pressed and held, and a second key is pressed, it is mapped to Ctrl
As he says, this is great for vim users. Is that possible in Linux/X?
He also does something similar with the right and left Shift keys. When pressed alone they map to ( and ) but if another key is pressed they act as you expect Shift to work.
xcape
) to do what this question asks. – Jim Paris Oct 16 '12 at 20:13