Skip to content

Instantly share code, notes, and snippets.

@markbao
Last active July 26, 2021 00:40
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markbao/6132f6d7a47019b82b36 to your computer and use it in GitHub Desktop.
Save markbao/6132f6d7a47019b82b36 to your computer and use it in GitHub Desktop.
Matias Ergo Pro Mac keyboard: remap right-control (where "b" should be) to "b"

The Matias Ergo Pro keyboard has a control key where I usually type "b" (I type "b" with my right hand). Here's how to remap that key to a "b".

  1. Download Karabiner: https://pqrs.org/osx/karabiner/
  2. Install it
  3. Open the app and go to "Misc & Uninstall"
  4. Click "Open private.xml" to open the customization file
  5. Open "private.xml" in TextEdit
  6. Add the following:
  7. Save and go back to Karabiner
  8. Go back to the first tab, Change Key
  9. Click Reload XML (top right)
  10. Find "Remap Right CTRL to B" in the list and enable it
<?xml version="1.0"?>
<root>
<item>
<name>Remap Right CTRL to B</name>
<identifier>custom.matias.ctrlr_to_b</identifier>
<autogen>__KeyToKey__ KeyCode::CONTROL_R, KeyCode::B</autogen>
</item>
</root>
@nubela
Copy link

nubela commented Mar 21, 2016

Cool! Thanks for this :)

@smallfri
Copy link

Thanks!!

@jenlampton
Copy link

So helpful, thank you very much!

@jenlampton
Copy link

jenlampton commented Apr 19, 2017

update: I just switched to a new computer (Mac OS Sierra 10.12.4 - 16E195) and Karabiner appears to open and run as it did before, but it's not actually doing anything. My right ctrl key does not work as a B anymore.

edit: Even after uninstalling and reinstalling Karabiner, it still does nothing.

@crisidev
Copy link

crisidev commented Jul 8, 2017

For sierra you need to use Karabiner-Elements (https://github.com/tekezo/Karabiner-Elements/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment