Skip to content

Instantly share code, notes, and snippets.

@shayelkin
Last active August 29, 2015 14:04
Show Gist options
  • Save shayelkin/57b87f89461b58d1a2cc to your computer and use it in GitHub Desktop.
Save shayelkin/57b87f89461b58d1a2cc to your computer and use it in GitHub Desktop.
Karabiner config: switch langauge with Option(Alt)+Shift
<?xml version="1.0"?>
<root>
<vkchangeinputsourcedef>
<name>KeyCode::VK_CHANGE_INPUTSOURCE_HEBREW</name>
<languagecode>he</languagecode>
<inputsourceid_equal>org.unknown.keylayout.Hebrew</inputsourceid_equal>
</vkchangeinputsourcedef>
<item>
<name>Option+Shift to switch between English and Hebrew</name>
<appendix>The side of the shift chooses the layout: Shift_L switches to English, Shift_R switches to Hebrew</appendix>
<identifier>private.opt_shift_change_he_en</identifier>
<autogen>__KeyToKey__ KeyCode::OPTION_L, ModifierFlag::SHIFT_L, KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH</autogen>
<autogen>__KeyToKey__ KeyCode::SHIFT_L, ModifierFlag::OPTION_L, KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_R, ModifierFlag::SHIFT_L, KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH</autogen>
<autogen>__KeyToKey__ KeyCode::SHIFT_L, ModifierFlag::OPTION_R, KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_R, ModifierFlag::SHIFT_R, KeyCode::VK_CHANGE_INPUTSOURCE_HEBREW</autogen>
<autogen>__KeyToKey__ KeyCode::SHIFT_R, ModifierFlag::OPTION_R, KeyCode::VK_CHANGE_INPUTSOURCE_HEBREW</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_L, ModifierFlag::SHIFT_R, KeyCode::VK_CHANGE_INPUTSOURCE_HEBREW</autogen>
<autogen>__KeyToKey__ KeyCode::SHIFT_R, ModifierFlag::OPTION_L, KeyCode::VK_CHANGE_INPUTSOURCE_HEBREW</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment