0

I am trying to map Alt+Space to Escape in Puppy Linux. Specifically, this is for vim, but I could not get it to work there. So, I thought I better try to do it globally, but I have no idea what is the key code for Alt+Space.

0

You can't: xmodmap can manipulate modifier-keys and manipulate key-codes, but Alt is not one of the predefined modifiers (i.e., Shift, Lock, Control).

Shift and Mode_switch are treated specially, and allow the sort of manipulation which you have in mind.

You can assign Alt to one of the placeholders mod1, mod2, mod3, mod4 or mod5. That lets programs see Alt as a modifier, but does not provide the the ability to treat it as one of the shiftable-features.

Further reading:

  • Well, I guess that's pretty sad... Thanks though. – user3496846 Jan 3 '16 at 14:08

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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