Skip to content

Instantly share code, notes, and snippets.

@peregrinogris
Last active July 25, 2016 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peregrinogris/8a03a299c9ced3a853af to your computer and use it in GitHub Desktop.
Save peregrinogris/8a03a299c9ced3a853af to your computer and use it in GitHub Desktop.
The private.xml file I use for Karabiner, to swap around some weird placed keys when using a not en_US keyboard as en_US (Tested in Spanish and German layouts)
<?xml version="1.0"?>
<root>
<item>
<name>Spanish to English Papercuts</name>
<item>
<name>Swap '§' and '`'</name>
<identifier>private.spanish_english_papercuts_backquote</identifier>
<autogen>__KeyToKey__ KeyCode::UK_SECTION, KeyCode::BACKQUOTE</autogen>
<autogen>__KeyToKey__ KeyCode::BACKQUOTE, KeyCode::UK_SECTION</autogen>
</item>
<item>
<name>Swap '\' and Return</name>
<identifier>private.spanish_english_papercuts_backslash</identifier>
<autogen>__KeyToKey__ KeyCode::RETURN, KeyCode::BACKSLASH</autogen>
<autogen>__KeyToKey__ KeyCode::BACKSLASH, KeyCode::RETURN</autogen>
</item>
</item>
<item>
<name>Logitech Keyboard</name>
<item>
<name>Powerkey to Lock</name>
<identifier>private.logitech_power_backquote</identifier>
<autogen>__KeyToKey__ ConsumerKeyCode::POWER, ModifierFlag::NONE, ConsumerKeyCode::EJECT, ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L</autogen>
</item>
</item>
</root>
@peregrinogris
Copy link
Author

peregrinogris commented Mar 4, 2016

Español

screen shot 2016-03-04 at 12 52 01

Externo

screen shot 2016-07-25 at 4 51 43 pm

Limpio

Sin Modificaciones.

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