Created
January 3, 2019 11:06
-
-
Save hnw/bcf7584ff36039d6bdea2f4848eaa2f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "Remap Japanese Keyboard to US (rev 1)", | |
| "rules": [ | |
| { | |
| "description": "Ctrl+@ to Escape", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "open_bracket", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "escape" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Remap Japanese keyboard to US", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "2", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "open_bracket" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "6", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "equal_sign" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "7", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "6", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "8", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "quote", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "9", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "8", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "0", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "9", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "hyphen", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "international1" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "equal_sign", | |
| "modifiers": { | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "hyphen", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "equal_sign", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "semicolon", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "open_bracket", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "close_bracket" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "close_bracket", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "non_us_pound" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "semicolon", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "quote" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "quote", | |
| "modifiers": { | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "7", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "quote", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "2", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "non_us_pound", | |
| "modifiers": { | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "international3" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "non_us_pound", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "control", | |
| "command", | |
| "option", | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "international3", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment