Last active
February 19, 2019 17:42
-
-
Save Sotalbireo/ad9e23f5bc2e0d02b01763d7658b2677 to your computer and use it in GitHub Desktop.
Karabiner-Elements をインスコして `~/.config/karabiner/assets/complex_modifications` に突っ込む
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": "Fn+CapsLockキーを英かなトグルにする", | |
"rules": [ | |
{ | |
"description": "US入力と、ことえりのひらがなをトグルする", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"select_input_source": { | |
"input_source_id": "^com\\.apple\\.inputmethod\\.Kotoeri\\.Japanese$" | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"language": "en" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"select_input_source": { | |
"input_source_id": "^com\\.apple\\.keylayout\\.US$" | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"language": "ja" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment