Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to remap some key behaviors globally.

For example:

Control + m -> Enter

Control + [ -> Esc

Is there any tool equivalent to Keyremap4Macbook ? Or is it possible to remap by using Xmodmap?

I've tried AutoHotkey, but it didn't work well with Guake. Any suggestions would be appreciated.

share|improve this question
    
possible duplicate of askubuntu.com/questions/254424/… –  Kevin Bowen Jun 4 '13 at 12:04

1 Answer 1

Remapping keys with the control modifier using xmodmap is possible, but unreliable. For example:

xmodmap -e "keycode 58 Shift_L Control_L = m M Return"

is a legal key mapping, and it will work in the terminal, and in a handful of GUI applications (those using Xt), but not in Gtk or Qt apps, which generally intercept the control key directly, bypassing the mapping.


If you're willing to install and run AutoKey, you can configure it to do what you want. Install the autokey-gtk package and configure a phrase like this:

Phrase=Enter, Paste=Keyboard, Hotkey=Ctrl-M

share|improve this answer

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.