Created
November 24, 2018 16:07
-
-
Save hnw/86a62637f83cac60503501c681a885f2 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", | |
| "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 ASCII punctuation", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "2", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "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": [ | |
| "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": [ | |
| "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": [ | |
| "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": [ | |
| "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": [ | |
| "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": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "international1" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "equal_sign" | |
| }, | |
| "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": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "semicolon", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "international3", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "grave_accent_and_tilde" | |
| } | |
| ], | |
| "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": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "quote" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "quote" | |
| }, | |
| "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": [ | |
| "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" | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "international3", | |
| "modifiers": [ | |
| "left_option" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "keyboard_type_if", | |
| "keyboard_types": [ | |
| "jis" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "non_us_pound", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ], | |
| "optional": [ | |
| "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