Last active
May 5, 2023 03:25
-
-
Save takayoshiotake/5d3c5c8c73c9a7796b028542b2c4d576 to your computer and use it in GitHub Desktop.
My the saikyou Karabiner Complex Modification for using Japanese macOS with ANSI keyboard.
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": "Saikyou Japanese Modification v1.4.0", | |
| "rules": [ | |
| { | |
| "description": "Kana One Way", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "spacebar", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "japanese_kana" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Command Eisuu Kana", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "left_command", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "left_command", | |
| "lazy": true | |
| }, | |
| "to_if_held_down": { | |
| "key_code": "left_command" | |
| }, | |
| "to_if_alone": { | |
| "key_code": "japanese_eisuu" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "right_command", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "right_command", | |
| "lazy": true | |
| }, | |
| "to_if_held_down": { | |
| "key_code": "right_command" | |
| }, | |
| "to_if_alone": { | |
| "key_code": "japanese_kana" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "CapsLock WASD Arrows & Eisuu", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { | |
| "mandatory": [ | |
| "shift" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "set_variable": { | |
| "name": "is_wasd_enabled", | |
| "value": 1 | |
| } | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "caps_lock" | |
| }, | |
| "to": { | |
| "set_variable": { | |
| "name": "is_wasd_enabled", | |
| "value": 1 | |
| } | |
| }, | |
| "to_after_key_up": { | |
| "set_variable": { | |
| "name": "is_wasd_enabled", | |
| "value": 0 | |
| } | |
| }, | |
| "to_if_alone": { | |
| "key_code": "japanese_eisuu" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "w", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "up_arrow" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "a", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "left_arrow" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "s", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "down_arrow" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "d", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "right_arrow" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "q", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "home" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "e", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "end" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "r", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "page_up" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "f", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "page_down" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "u", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "delete_or_backspace" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { | |
| "name": "is_wasd_enabled", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "j", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "japanese_kana" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Function Keys", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "1", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f1" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "2", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f2" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "3", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f3" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "4", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f4" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "5", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f5" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "6", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f6" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "7", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f7" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "8", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f8" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "9", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f9" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "0", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f10" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "hyphen", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f11" | |
| } | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "equal_sign", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to": { | |
| "key_code": "f12" | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment