{
  "title": "ipatch, ke, local complex modifications",

  "TODO": "incomplete complex mod, idea is, change `-` to underbar when caps mode is on",

    "maintainer": [
    "ipatch"
  ],


  "rules": [
    {
      "description": "CAPS key: toggle capskey_mode on/off",
      "manipulators": [
        {
          "from": {
            "key_code": "caps_lock",
            "modifiers": {
              "mandatory": [

              ],
              "optional": [
                "any"
              ]
            }
          },
          "type": "basic",
          "to": {
            "set_variable": {
              "name": "capskey_mode",
              "value": 1
            }
          },
          "conditions": [
            {
              "type": "variable_if",
              "name": "capskey_mode",
              "value": 0
            }
          ]
        },
        {
          "from": {
            "key_code": "caps_lock",
            "modifiers": {
              "mandatory": [

              ],
              "optional": [
                "any"
              ]
            }
          },
          "type": "basic",
          "to": {
            "set_variable": {
              "name": "capskey_mode",
              "value": 0
            }
          },
          "conditions": [
            {
              "type": "variable_if",
              "name": "capskey_mode",
              "value": 1
            }
          ]
        }
      ]
    },
    {
      "description": "CAPS: capskey_mode: if ON hypehn to j",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "hyphen",
            "modifiers": {
              "mandatory": [

              ],
              "optional": [

              ]
            }
          },
          "to": {
            "key_code": "j"
          },
          "conditions": [
            {
            "type": "variable_if",
            "name": "capskey_mode",
            "value": 1
            }
          ]
        } 
      ]
    }
    
  ]
}

