Skip to content

Instantly share code, notes, and snippets.

@azyu
Last active September 22, 2015 15:32
Show Gist options
  • Save azyu/68bee18af85039bdc17a to your computer and use it in GitHub Desktop.
Save azyu/68bee18af85039bdc17a to your computer and use it in GitHub Desktop.
Karabiner 입력기 단축키
<?xml version="1.0"?>
<root>
<item>
<name>Change input source to ENGLISH by left ctrl + command + E</name>
<identifier>private.change_input_source_to_english</identifier>
<autogen>
__KeyToKey__
KeyCode::E, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH,
KeyCode::VK_WAIT_100MS,
KeyCode::SPACE, ModifierFlag::COMMAND_L,
KeyCode::VK_WAIT_100MS,
KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH,
</autogen>
</item>
<item>
<name>Change input source to KOREAN by left ctrl + command + K</name>
<identifier>private.change_input_source_to_korean</identifier>
<autogen>
__KeyToKey__
KeyCode::K, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::VK_CHANGE_INPUTSOURCE_KOREAN,
KeyCode::VK_WAIT_100MS,
KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH,
KeyCode::VK_WAIT_100MS,
KeyCode::SPACE, ModifierFlag::COMMAND_L,
</autogen>
</item>
<item>
<name>Change input source to Japanese by left ctrl + command + J</name>
<identifier>private.change_input_source_to_japanese</identifier>
<autogen>
__KeyToKey__
KeyCode::J, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::VK_CHANGE_INPUTSOURCE_JAPANESE,
KeyCode::VK_WAIT_100MS,
KeyCode::VK_CHANGE_INPUTSOURCE_ENGLISH,
KeyCode::VK_WAIT_100MS,
KeyCode::SPACE, ModifierFlag::COMMAND_L,
</autogen>
</item>
</root>
@azyu
Copy link
Author

azyu commented Sep 22, 2015

TISSelectInputSource API에 버그가 있는지 언어 전환이 제대로 안 된다.
결국 꼼수를 부렸음 -_-

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