Overriding macOS Diagnostics Shortcuts

This is an addition to the last post on the Hyper Key and Shortcuts. There are a few shortcuts from macOS that already make use of the Hyper Key:

  • cmd + option + ctrl + shift + . : Will run the system diagnostics on macOS. This will use up resources from your system and also waste a lot of disk space in /var/tmp
  • cmd + option + ctrl + shift + , : Will open the most recent system diagnose in the Finder.
  • cmd + option + ctrl + shift + w : Will run the Wi-Fi diagnostics – also using a lot of space.

An Apple StackExchange Thread helped me figure this out. Causing my manually defined shortcuts to fail inconsistently. But I wasn't able to find a way to disable this in macOS directly.

But I found a workaround: Assigning these key combinations to the f17 - f19 keys. 🎉 Those are in general not used by macOS, and so far, I didn't run into any complications.

Below the relevant part of my karabiner config:

{
    "description": "Map Command-Shift-Option-Control-Period to f19 (avoid System Diagnostics)",
    "manipulators": [
        {
            "from": {
                "key_code": "period",
                "modifiers": {
                    "mandatory": [
                        "left_command",
                        "left_control",
                        "left_option",
                        "left_shift"
                    ]
                }
            },
            "to": {
                "key_code": "f19"
            },
            "type": "basic"
        }
    ]
},
{
    "description": "Map Command-Shift-Option-Control-Comma to f18 (avoid System Diagnostics)",
    "manipulators": [
        {
            "from": {
                "key_code": "comma",
                "modifiers": {
                    "mandatory": [
                        "left_command",
                        "left_control",
                        "left_option",
                        "left_shift"
                    ]
                }
            },
            "to": {
                "key_code": "f18"
            },
            "type": "basic"
        }
    ]
},
{
    "description": "Map Command-Shift-Option-Control-w to f17 (avoid Wifi Diagnostics)",
    "manipulators": [
        {
            "from": {
                "key_code": "w",
                "modifiers": {
                    "mandatory": [
                        "left_command",
                        "left_control",
                        "left_option",
                        "left_shift"
                    ]
                }
            },
            "to": {
                "key_code": "f17"
            },
            "type": "basic"
        }
    ]
}