tools/mac
karabiner element ESC 입력시 자동 영문 변환하기
seul chan
2020. 4. 14. 23:36
~/.config/karabiner/assets/complex_modifications/
에<example>.json
파일 생성- 해당 파일에 룰 추가: https://pqrs.org/osx/karabiner/json.html#complex_modifications-data-structure 에 룰 설명 되어있음
- Karabiner-Elements preference -> Complex Modifications -> Add rule 하여 해당 rule enabled
{
"title": "Convert to en when ESC",
"rules": [
{
"description":"Convert to en when ESC",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"to_after_key_up": [
{
"select_input_source": {
"language": "en"
}
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^com\\.googlecode\\.iterm2$",
"^co\\.zeit\\.hyperterm$",
"^co\\.zeit\\.hyper$",
"^io\\.alacritty$",
"^net\\.kovidgoyal\\.kitty$"
]
}
]
}
]
}
]
}
단점
- 현재는 ESC를 두번 눌러야 됨
- 한 번 눌렀을 때 한->영문, 두번 눌렀을 때 Normal 모드 -> 이건 해결된듯?
- 다른 application 등 모든 환경에서 적용되는 문제