{
  "title": "Neo2",
  "rules": [
    {
      "description": "Neo2 mod 3 and 4 keys (Apple keyboards). Rule applied to Apple-made keyboards only.",
      "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": "right_option"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "right_option",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_command"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "simultaneous": [
              {
                "key_code": "grave_accent_and_tilde"
              },
              {
                "key_code": "right_command"
              }
            ]
          },
          "to": [
            {
              "set_variable": {
                "name": "neo2_mod_4",
                "value": 2
              },
              "halt": true
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            },
            {
              "type": "device_if",
              "identifiers": [
                {
                  "vendor_id": 1452,
                  "description": "Apple devices"
                }
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "simultaneous": [
              {
                "key_code": "grave_accent_and_tilde"
              },
              {
                "key_code": "right_command"
              }
            ]
          },
          "to": [
            {
              "set_variable": {
                "name": "neo2_mod_4",
                "value": 0
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_if",
              "name": "neo2_mod_4",
              "value": 2
            },
            {
              "type": "device_if",
              "identifiers": [
                {
                  "vendor_id": 1452,
                  "description": "Apple devices"
                }
              ]
            }
          ]
        },
        {
          "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
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            },
            {
              "type": "device_if",
              "identifiers": [
                {
                  "vendor_id": 1452,
                  "description": "Apple devices"
                }
              ]
            }
          ]
        },
        {
          "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
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            },
            {
              "type": "device_if",
              "identifiers": [
                {
                  "vendor_id": 1452,
                  "description": "Apple devices"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "description": "Neo2 mod 3 and 4 keys (third party Mac keyboard). Rule applied to all keyboards.",
      "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": "right_option"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "right_option",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_command"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "simultaneous": [
              {
                "key_code": "grave_accent_and_tilde"
              },
              {
                "key_code": "right_command"
              }
            ]
          },
          "to": [
            {
              "set_variable": {
                "name": "neo2_mod_4",
                "value": 2
              },
              "halt": true
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "simultaneous": [
              {
                "key_code": "grave_accent_and_tilde"
              },
              {
                "key_code": "right_command"
              }
            ]
          },
          "to": [
            {
              "set_variable": {
                "name": "neo2_mod_4",
                "value": 0
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_if",
              "name": "neo2_mod_4",
              "value": 2
            }
          ]
        },
        {
          "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
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            }
          ]
        },
        {
          "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
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            }
          ]
        }
      ]
    },
    {
      "description": "Neo2 mod 3 and 4 keys (Windows keyboard). Rule applied to all non-Apple keyboards.",
      "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": "right_option"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "right_option",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_command"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "simultaneous": [
              {
                "key_code": "non_us_backslash"
              },
              {
                "key_code": "right_command"
              }
            ]
          },
          "to": [
            {
              "set_variable": {
                "name": "neo2_mod_4",
                "value": 2
              },
              "halt": true
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            },
            {
              "type": "device_unless",
              "identifiers": [
                {
                  "vendor_id": 1452,
                  "description": "Apple devices"
                }
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "simultaneous": [
              {
                "key_code": "non_us_backslash"
              },
              {
                "key_code": "right_command"
              }
            ]
          },
          "to": [
            {
              "set_variable": {
                "name": "neo2_mod_4",
                "value": 0
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_if",
              "name": "neo2_mod_4",
              "value": 2
            },
            {
              "type": "device_unless",
              "identifiers": [
                {
                  "vendor_id": 1452,
                  "description": "Apple devices"
                }
              ]
            }
          ]
        },
        {
          "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
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            },
            {
              "type": "device_unless",
              "identifiers": [
                {
                  "vendor_id": 1452,
                  "description": "Apple devices"
                }
              ]
            }
          ]
        },
        {
          "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
              }
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 2
            },
            {
              "type": "device_unless",
              "identifiers": [
                {
                  "vendor_id": 1452,
                  "description": "Apple devices"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "description": "Neo2 layer 4",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "d",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "down_arrow"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "e",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "up_arrow"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "s",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_arrow"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_arrow"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "q",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "page_up"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "t",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "page_down"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "z",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "escape"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "w",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "delete_or_backspace"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "r",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "delete_forward"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "m",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_1"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "comma",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_2"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "period",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_3"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "j",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_4"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "k",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_5"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "l",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_6"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "u",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_7"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "i",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_8"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "o",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_9"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "spacebar",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_0"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_slash"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_asterisk"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "hyphen",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_hyphen"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "p",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "keypad_plus"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "v",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "return_or_enter"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "quote",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "period"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "semicolon",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "comma"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "x",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "tab"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "tab"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "n",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "semicolon",
              "modifiers": [
                "right_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "slash",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "command",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "slash",
              "modifiers": [
                "right_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "b",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "b",
              "modifiers": [
                "left_command"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "c",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "w",
              "modifiers": [
                "left_command"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "a",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_arrow",
              "modifiers": [
                "left_command"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "g",
            "modifiers": {
              "optional": [
                "shift",
                "caps_lock",
                "left_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_arrow",
              "modifiers": [
                "left_command"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "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_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "1"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "1",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "2",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "3",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "4",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "5",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "6",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "7",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "hyphen"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "hyphen",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "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_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "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_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "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_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "y"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "y",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "h"
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "h",
              "modifiers": [
                "left_shift"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        }
      ]
    },
    {
      "description": "Neo2 layer 6",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "non_us_backslash",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "non_us_backslash",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "1",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "1",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "2",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "3",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "4",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "5",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "6",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "7",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "8",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "9",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "0",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "hyphen",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "hyphen",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "equal_sign",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "q",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "q",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "w",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "w",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "e",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "e",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "r",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "r",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "t",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "t",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "y",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "y",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "u",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "u",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "i",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "i",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "o",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "o",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "p",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "p",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "open_bracket",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "open_bracket",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "close_bracket",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "close_bracket",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "a",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "a",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "s",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "s",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "d",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "d",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "f",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "g",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "g",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "h",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "h",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "j",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "j",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "k",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "k",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "l",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "l",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "semicolon",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "semicolon",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "quote",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "quote",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "z",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "z",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "x",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "x",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "c",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "c",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "v",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "v",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "b",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "n",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "n",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "m",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "m",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "comma",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "comma",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "period",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "period",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "slash",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "z",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "slash",
              "modifiers": [
                "left_shift",
                "left_option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "neo2_mod_4",
              "value": 0
            }
          ]
        }
      ]
    },
    {
      "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 problematic keys (?, /, #, =, and ')') from being treated as option key shortcut",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "h",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "h"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "s",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "s"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "z",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "z"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "o",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "o"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "k",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "k"
            }
          ]
        }
      ]
    },
    {
      "description": "Prevent all layer 3 keys from being treated as option key shortcut",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "a",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "a"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "b",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "b"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "c",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "c"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "d",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "d"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "e",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "e"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "f"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "g",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "g"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "h",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "h"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "i",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "i"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "j",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "j"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "k",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "k"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "l",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "l"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "m",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "m"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "n",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "n"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "o",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "o"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "p",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "p"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "q",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "q"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "r",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "r"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "s",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "s"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "t",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "t"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "u",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "u"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "v",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "v"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "w",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "w"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "x",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "x"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "y",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "y"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "z",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "z"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "open_bracket",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "open_bracket"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "semicolon",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "semicolon"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "quote",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "quote"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "comma",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "comma"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "period",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "period"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "slash",
            "modifiers": {
              "mandatory": [
                "right_option"
              ]
            }
          },
          "to": [
            {
              "key_code": "a",
              "modifiers": [
                "left_option",
                "left_shift"
              ]
            },
            {
              "key_code": "slash"
            }
          ]
        }
      ]
    }
  ]
}
