Skip to content

Instantly share code, notes, and snippets.

@krin-san
Last active August 2, 2016 06:28
Show Gist options
  • Save krin-san/3d8c101ae3ffeb5d331d to your computer and use it in GitHub Desktop.
Save krin-san/3d8c101ae3ffeb5d331d to your computer and use it in GitHub Desktop.
Karabiner (KeyRemap4MacBook) config file
<?xml version="1.0"?>
<root>
<item>
<name>Krin-San's remapping</name>
<item>
<name>Use F19 as non-cycle layout switching</name>
<appendix>Install Seil plugin to override CapsLock (https://pqrs.org/osx/karabiner/seil.html.en)</appendix>
<identifier>change_inputsources</identifier>
<autogen>__KeyToKey__ KeyCode::F19, ModifierFlag::NONE, KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH</autogen>
<autogen>__KeyToKey__ KeyCode::F19, ModifierFlag::OPTION_L, KeyCode::VK_CHANGE_INPUTSOURCE_RUSSIAN</autogen>
</item>
</item>
</root>
@krin-san
Copy link
Author

krin-san commented Aug 2, 2016

You should install Karabiner, grant Accessability access to it, write the config above into private.xml. Then install Seil, change a CapsLock key to F19 and follow the instructions below the check box to turn off default CapsLock behaviour.

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