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.

In general, I want to make specific keymaps for application, that working only in it and doesn't affect other apps.

For example, I already use my Caps key to toggle input language (via xorg.conf), but I want Capslock to behave like Esc in vim.
Looks like xmodmap doesn't have any options related to that.

share|improve this question
    
X doesn't have any such facility, but your window manager or desktop environment may have one. What is it? –  Gilles Oct 14 '10 at 22:53
    
Gnome, maybe there is some third-party applications too? –  Andrew Oct 15 '10 at 18:56
    
Unless it is server related it has no valid reason to be moved, and will most likely be sent back here. However you can try the new Unix SE site. They are still in beta and has a much smaller Linux community but the core focus is Linux. There is no migration path to the Linux site. –  Diago Oct 17 '10 at 11:26
add comment

1 Answer

up vote 1 down vote accepted

I found solution in evrouter. It maps any keyboard event onto keypress in X.Org if active window title is matched by regexp you specify. It also helps me to deal with Zoom key on my Microsoft Natural Keyboard.
The bad thing is default X keypress also occurs.

share|improve this answer
add comment

Your Answer

 
discard

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.