5

Sometimes it is convenient to have Escape where Tab usually is and arrows where h,j,k,l usually are. Sometimes applications are not very configurable in terms of keybindings. There is xmodmap which allows remapping system-wide. But is is possible to remap only for particular application/program/process?

2
  • Not directly. But the window manager can change key mappings when the window focus changes. Not all window managers support that. What window manager or desktop environment are you using? Commented Feb 13, 2021 at 23:27
  • @Gilles'SO-stopbeingevil' Ubuntu Gnome, but if something better and more flexible exists, it would be pleasure to migrate
    – vatosarmat
    Commented Feb 14, 2021 at 6:08

2 Answers 2

2

This article does a great job breaking down the options for you. The diagram copied below summarizes things even more succinctly. enter image description here

Perhaps one of two tools matching your request (autokey & xkeysnail) will work for you?

0

As long as you're still using X11, AutoKey will do all but the Tab key. Each action (phrase or script) has an optional associated window filter. If that matches your active window then the action is performed. Otherwise it behaves as if AutoKey was not there. The tab key won't work as a hotkey unless you xmodmap (etc.) it to something else first. Then, it might work.

If you can define mutually exclusive window filters for two different application windows, then you can even reuse the same hotkeys(shortcuts) to perform different actions in each of the windows.

Defining window filters involves a few wrinkles, so if you go that route and run into difficulties, come over to Gitter and we can get it sorted.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .