Skip to content

Instantly share code, notes, and snippets.

@undoZen
Last active December 16, 2015 12:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save undoZen/5432299 to your computer and use it in GitHub Desktop.
Save undoZen/5432299 to your computer and use it in GitHub Desktop.
my private.xml file for KeyRemap4MacBook
<?xml version="1.0"?>
<root><!--
<item>
<name>Backquote to CapsLock and Escape to Backquote</name>
<identifier>private.swap_space_and_tab</identifier>
<autogen>__KeyToKey__ KeyCode::ESCAPE, KeyCode::BACKQUOTE</autogen>
<autogen>__KeyToKey__ KeyCode::BACKQUOTE, KeyCode::CAPSLOCK</autogen>
</item>
<item>
<name>Switch Input Source</name>
<appendix>Use the right Command key to select the previous input source</appendix>
<identifier>private.switch_next_input_source_with_right_command</identifier>
<autogen>--KeyOverlaidModifier-- KeyCode::COMMAND_R, KeyCode::COMMAND_R, KeyCode::SPACE, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Switch Input Source</name>
<appendix>Use the right Option key to select the next input source</appendix>
<identifier>private.switch_input_source_with_right_option</identifier>
<autogen>--KeyToKey-- KeyCode::OPTION_R, KeyCode::SPACE, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyOverlaidModifier-- KeyCode::OPTION_R, KeyCode::OPTION_R, KeyCode::SPACE, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Swap RightClick and MiddleClick</name>
<identifier>private.swap_middleclick_and_rightclick</identifier>
<autogen>--PointingButtonToPointingButton-- PointingButton::RIGHT, PointingButton::MIDDLE</autogen>
<autogen>--PointingButtonToPointingButton-- PointingButton::MIDDLE, PointingButton::RIGHT</autogen>
</item>-->
<item>
<name>Application Key to Control_L</name>
<appendix>(+ When you type Application Key only, send Escape)</appendix>
<!-- Note: identifier has "jis_" prefix for compatibility. -->
<identifier>private.pc_application2controlL_escape</identifier>
<autogen>--KeyOverlaidModifier-- KeyCode::PC_APPLICATION, KeyCode::CONTROL_L, KeyCode::ESCAPE</autogen>
</item>
<item>
<name>Option_R Key to Command_R + Shift_R</name>
<appendix>(+ When you type Option_L Key only, send Escape)</appendix>
<!-- Note: identifier has "jis_" prefix for compatibility. -->
<identifier>private.option_r2command_shift</identifier>
<autogen>--KeyOverlaidModifier-- KeyCode::OPTION_R, KeyCode::COMMAND_R, ModifierFlag::SHIFT_R, KeyCode::OPTION_R</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment