Skip to content

Instantly share code, notes, and snippets.

@bobwaycott
Created October 27, 2016 22:32
Show Gist options
  • Save bobwaycott/d3a52718927519f3a11fbff8b849b03f to your computer and use it in GitHub Desktop.
Save bobwaycott/d3a52718927519f3a11fbff8b849b03f to your computer and use it in GitHub Desktop.
Karabiner - Switch | (pipe) and \ (backslash) keys
<?xml version="1.0"?>
<root>
<item>
<name>Swap \ and | keys.</name>
<identifier>private.swap_backslash_and_pipe</identifier>
<autogen>
__KeyToKey__
KeyCode::BACKSLASH, ModifierFlag::NONE,
KeyCode::BACKSLASH, ModifierFlag::SHIFT_L,
</autogen>
<autogen>
__KeyToKey__
KeyCode::BACKSLASH, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT | ModifierFlag::NONE,
KeyCode::BACKSLASH,
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment