{ "title": "Neo2", "rules": [ { "description": "Neo2 mod 3 and 4 keys (Apple keyboard)", "manipulators": [ { "type": "basic", "from": { "key_code": "backslash", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "right_option" } ] }, { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_option" } ] }, { "type": "basic", "from": { "key_code": "right_option", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "right_command" } ] }, { "type": "basic", "from": { "key_code": "grave_accent_and_tilde", "modifiers": { "optional": [ "any" ] } }, "to": [ { "set_variable": { "name": "neo2_mod_4", "value": 1 } } ], "to_after_key_up": [ { "set_variable": { "name": "neo2_mod_4", "value": 0 } } ] }, { "type": "basic", "from": { "key_code": "right_command", "modifiers": { "optional": [ "any" ] } }, "to": [ { "set_variable": { "name": "neo2_mod_4", "value": 1 } } ], "to_after_key_up": [ { "set_variable": { "name": "neo2_mod_4", "value": 0 } } ] } ] }, { "description": "Neo2 mod 3 and 4 keys (Windows keyboard)", "manipulators": [ { "type": "basic", "from": { "key_code": "non_us_pound", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "right_option" } ] }, { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_option" } ] }, { "type": "basic", "from": { "key_code": "right_option", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "right_command" } ] }, { "type": "basic", "from": { "key_code": "non_us_backslash", "modifiers": { "optional": [ "any" ] } }, "to": [ { "set_variable": { "name": "neo2_mod_4", "value": 1 } } ], "to_after_key_up": [ { "set_variable": { "name": "neo2_mod_4", "value": 0 } } ] }, { "type": "basic", "from": { "key_code": "right_command", "modifiers": { "optional": [ "any" ] } }, "to": [ { "set_variable": { "name": "neo2_mod_4", "value": 1 } } ], "to_after_key_up": [ { "set_variable": { "name": "neo2_mod_4", "value": 0 } } ] } ] }, { "description": "Neo2 layer 4", "manipulators": [ { "type": "basic", "from": { "key_code": "d", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "down_arrow" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "e", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "up_arrow" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "s", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "left_arrow" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "f", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "right_arrow" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "q", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "page_up" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "t", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "page_down" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "z", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "escape" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "w", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "delete_or_backspace" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "r", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "delete_forward" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "m", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_1" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "comma", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_2" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "period", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_3" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "j", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_4" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "k", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_5" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_6" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "u", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_7" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "i", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_8" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "o", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_9" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "spacebar", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_0" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "9", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_slash" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "0", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_asterisk" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "hyphen", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_hyphen" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "keypad_plus" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "v", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "return_or_enter" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "quote", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "period" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "comma" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "x", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "tab" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "8", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "tab" } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "n", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "semicolon", "modifiers": [ "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "slash", "modifiers": { "optional": [ "shift", "caps_lock", "command" ] } }, "to": [ { "key_code": "slash", "modifiers": [ "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "b", "modifiers": { "optional": [ "shift", "caps_lock" ] } }, "to": [ { "key_code": "b", "modifiers": [ "left_command" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "c", "modifiers": { "optional": [ "shift", "caps_lock" ] } }, "to": [ { "key_code": "w", "modifiers": [ "left_command" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "a", "modifiers": { "optional": [ "shift", "caps_lock" ] } }, "to": [ { "key_code": "left_arrow", "modifiers": [ "left_command" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "g", "modifiers": { "optional": [ "shift", "caps_lock" ] } }, "to": [ { "key_code": "right_arrow", "modifiers": [ "left_command" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "non_us_backslash" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "non_us_backslash", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "1" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "1", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "2" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "2", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "3" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "3", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "4" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "4", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "5" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "5", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "6" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "6", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "7" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "7", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "hyphen" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "hyphen", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "equal_sign" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "equal_sign", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "open_bracket" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "open_bracket", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "close_bracket" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "close_bracket", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "y" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "y", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "h" }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "h", "modifiers": [ "left_shift" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] } ] }, { "description": "Neo2 layer 6", "manipulators": [ { "type": "basic", "from": { "key_code": "non_us_backslash", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "non_us_backslash", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "1", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "1", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "2", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "2", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "3", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "3", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "4", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "4", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "5", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "5", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "6", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "6", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "7", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "7", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "8", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "8", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "9", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "9", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "0", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "0", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "hyphen", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "hyphen", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "equal_sign", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "equal_sign", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "q", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "q", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "w", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "w", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "e", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "e", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "r", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "r", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "t", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "t", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "y", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "y", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "u", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "u", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "i", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "i", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "o", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "o", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "p", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "p", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "open_bracket", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "open_bracket", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "close_bracket", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "close_bracket", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "a", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "a", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "s", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "s", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "d", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "d", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "f", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "f", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "g", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "g", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "h", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "h", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "j", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "j", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "k", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "k", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "l", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "l", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "semicolon", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "quote", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "quote", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "z", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "z", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "x", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "x", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "c", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "c", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "v", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "v", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "b", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "b", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "n", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "n", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "m", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "m", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "comma", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "comma", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "period", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "period", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "slash", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "z", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "slash", "modifiers": [ "left_shift", "left_option" ] } ], "conditions": [ { "type": "variable_if", "name": "neo2_mod_4", "value": 1 } ] } ] }, { "description": "Toggle caps_lock by pressing left_shift + right_shift at the same time", "manipulators": [ { "type": "basic", "from": { "key_code": "left_shift", "modifiers": { "mandatory": [ "right_shift" ], "optional": [ "caps_lock" ] } }, "to": [ { "key_code": "caps_lock" } ], "to_if_alone": [ { "key_code": "left_shift" } ] }, { "type": "basic", "from": { "key_code": "right_shift", "modifiers": { "mandatory": [ "left_shift" ], "optional": [ "caps_lock" ] } }, "to": [ { "key_code": "caps_lock" } ], "to_if_alone": [ { "key_code": "right_shift" } ] } ] }, { "description": "Tab acts as Ctrl if pressed with another key", "manipulators": [ { "type": "basic", "from": { "key_code": "tab", "modifiers": { "optional": [ "shift", "option", "command" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "tab" } ] } ] }, { "description": "Prevent '?' from being treated as 'Option+?' shortcut", "manipulators": [ { "type": "basic", "from": { "key_code": "h", "modifiers": { "mandatory": [ "option" ] } }, "to": [ { "key_code": "a", "modifiers": [ "left_option", "left_shift" ] }, { "key_code": "h" } ] } ] } ] }