Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am on archlinux and trying to swap the left Alt key with the left Ctrl key for my convenience in emacs as well as bash command line editing. I use the following ~/.xmodmap:

remove mod1 = Alt_L
remove control = Control_L
keycode 37 = Alt_L
keycode 64 = Control_L
add mod1 = Control_L
add control = Alt_L

For some unclear reason to me, although xev output shows that indeed the two keys are swapped, no application actually uses the new bindings. Can someone enlighten me?

share|improve this question

migrated from stackoverflow.com Apr 30 '11 at 17:08

This question came from our site for professional and enthusiast programmers.

1  
I removed lines 3 and 4 and the problem is solved. All I needed to do is just remove the key from its original modifier and rebind it to the desired one. By swapping the keycodes I effectively rebound the each key to its original modifier. How silly of me! –  stk Apr 29 '11 at 21:37
    
@stk, you can mark this question answered, if you post the above comment as answer and mark it as correct. –  sindikat Oct 26 '11 at 7:47

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.