{ 
  "title": "ipatch, ke, local complex modifications",
  "maintainer": [
    "ipatch"
  ],

  "NOTE": "incomplete, scaffold out to test running apl script while holding key, limitation become Rectangle.app ; see: https://github.com/rxhanson/Rectangle/discussions/346",

  "rules": [
    {
      "description": "ipatch, exp with holding a key down",
      "manipulators": [
        {
          "type": "basic",
          "from": {
              "key_code": "right_alt",
              "modifiers": {
                "optional": ["any"]
              }
          },
          "parameters": {
            "basic.to_if_alone_timeout_milliseconds": 250,
            "basic.to_if_held_down_threshold_milliseconds": 250
          },
          "to_if_alone": [
            {
              "key_code": "right_alt"
            }
          ],
          "to_if_held_down": [
            {
              "shell_command": "open -a '/Users/capin/Library/Scripts/Applications/playground/rectangle_make_larger.app'"
            }
          ]
        }
      ]
    }
  ]
}
