Skip to content

Instantly share code, notes, and snippets.

@pyar6329
Last active September 21, 2017 06:19
Show Gist options
  • Save pyar6329/53f9b33c3134f4bf67adceec17c77ec1 to your computer and use it in GitHub Desktop.
Save pyar6329/53f9b33c3134f4bf67adceec17c77ec1 to your computer and use it in GitHub Desktop.
karabiner elements configs (esc, ctrl-g, ctrl-sで日本語入力off)
{
"title": "Terminal等でESCあるいはctrl-gあるいはctrl-sで日本語入力を英数に",
"rules": [
{
"description": "TerminalまたはMacVimでESCあるいはctrl-gあるいはctrl-sを押したときに日本語入力を英数に切り替える。",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^com\\.googlecode\\.iterm2$"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "s",
"modifiers": {
"mandatory": [
"control"
]
}
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^com\\.googlecode\\.iterm2$"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "g",
"modifiers": {
"mandatory": [
"control"
]
}
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^com\\.googlecode\\.iterm2$"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment