Last active
September 21, 2017 06:19
-
-
Save pyar6329/53f9b33c3134f4bf67adceec17c77ec1 to your computer and use it in GitHub Desktop.
karabiner elements configs (esc, ctrl-g, ctrl-sで日本語入力off)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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