Skip to content

Instantly share code, notes, and snippets.

@kwarrick
Created October 20, 2014 23:51
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 kwarrick/fa96ac725182518798ba to your computer and use it in GitHub Desktop.
Save kwarrick/fa96ac725182518798ba to your computer and use it in GitHub Desktop.
Karabiner configuration for enforcing proper shift usage.
<?xml version="1.0"?>
<root>
<item>
<name>Compel Semicolon</name>
<appendix>Disable right shift for colon.</appendix>
<identifier>private.compel_colon</identifier>
<autogen>
__KeyToKey__
KeyCode::SEMICOLON, ModifierFlag::SHIFT_R | ModifierFlag::NONE,
KeyCode::VK_NONE
</autogen>
</item>
<item>
<name>Compel Double Quote</name>
<appendix>Disable right shift for double quote.</appendix>
<identifier>private.compel_doublequote</identifier>
<autogen>
__KeyToKey__
KeyCode::QUOTE, ModifierFlag::SHIFT_R | ModifierFlag::NONE,
KeyCode::VK_NONE
</autogen>
</item>
<item>
<name>Compel Curly Brace</name>
<appendix>Disable right shift for curly brace.</appendix>
<identifier>private.compel_curlybrace</identifier>
<autogen>
__KeyToKey__
KeyCode::BRACKET_LEFT, ModifierFlag::SHIFT_R | ModifierFlag::NONE,
KeyCode::VK_NONE
</autogen>
<autogen>
__KeyToKey__
KeyCode::BRACKET_RIGHT, ModifierFlag::SHIFT_R | ModifierFlag::NONE,
KeyCode::VK_NONE
</autogen>
</item>
<item>
<name>Compel Question Mark</name>
<appendix>Disable right shift for question mark.</appendix>
<identifier>private.compel_question</identifier>
<autogen>
__KeyToKey__
KeyCode::SLASH, ModifierFlag::SHIFT_R | ModifierFlag::NONE,
KeyCode::VK_NONE
</autogen>
</item>
<item>
<name>Compel Less and Greater than.</name>
<appendix>Disable right shift less than and greater than.</appendix>
<identifier>private.compel_lessgreat</identifier>
<autogen>
__KeyToKey__
KeyCode::COMMA, ModifierFlag::SHIFT_R | ModifierFlag::NONE,
KeyCode::VK_NONE
</autogen>
<autogen>
__KeyToKey__
KeyCode::DOT, ModifierFlag::SHIFT_R | ModifierFlag::NONE,
KeyCode::VK_NONE
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment