0

I recently installed linux on my Macbook Pro and I'm currently configuring it.

Since I'm a Vim user, I use Esc key a lot. So I map esc key to right Command key and map right Command key to use it without crossing my hands on my keyboard. In macOS, I used Karabinder-Elements to map those keys.

How can I do the same in linux?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
sohnryang
  • 111
  • 6
  • You sure can, but FWIW I'm a massive vim user and [never use escape](http://vim.wikia.com/wiki/Avoid_the_escape_key)! I use the `jk` trick. – Sparhawk Oct 14 '17 at 03:04
  • No worries. For the swapping part specifically, I'd use xkb. There are [a](https://unix.stackexchange.com/questions/65507/use-setxkbmap-to-swap-the-left-shift-and-left-control) [few](https://unix.stackexchange.com/questions/139128/adding-custom-setxkbmap-options) [questions](https://unix.stackexchange.com/questions/66775/how-to-permanently-swap-esc-and-caps-lock-in-xfce-xubuntu) that are similar. – Sparhawk Oct 14 '17 at 05:15
  • I used xkb, but when I press command key, the window is disabled and I can't see the keycode of command key. – sohnryang Oct 14 '17 at 05:58

0 Answers0