{
  "description": "CapsLock to Hyper when held and Escape on tap, with sysdiagnose workarounds",
  "manipulators": [
    {
      "description": "Change caps_lock to command+control+option+shift when held, and to escape when pressed alone",
      "from": {
        "key_code": "caps_lock"
      },
      "to": [
        {
          "key_code": "left_shift",
          "modifiers": [
            "left_command",
            "left_control",
            "left_option"
          ]
        }
      ],
      "to_if_alone": [
        {
          "key_code": "escape"
        }
      ],
      "type": "basic"
    },
    {
      "description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+,",
      "from": {
        "key_code": "comma",
        "modifiers": {
          "mandatory": [
            "command",
            "shift",
            "option",
            "control"
          ]
        }
      },
      "to": [],
      "type": "basic"
    },
    {
      "description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+.",
      "from": {
        "key_code": "period",
        "modifiers": {
          "mandatory": [
            "command",
            "shift",
            "option",
            "control"
          ]
        }
      },
      "to": [],
      "type": "basic"
    },
    {
      "from": {
        "description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+/",
        "key_code": "slash",
        "modifiers": {
          "mandatory": [
            "command",
            "shift",
            "option",
            "control"
          ]
        }
      },
      "to": [],
      "type": "basic"
    }
  ]
}