Last active
August 5, 2024 13:35
-
-
Save mgdm/dc94df9b407f38af4c819f9a4e5cd956 to your computer and use it in GitHub Desktop.
Custom modification for Karabiner to disable the cmd-m minimise shortcut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Prevent unintended command-m minimising", | |
"rules": [ | |
{ | |
"description": "Disable Cmd+m minimise", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { | |
"key_code": "m", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
] | |
} | |
} | |
} | |
] | |
} | |
] | |
} |
The same, but only for certain apps
{
"description": "disable cmd+m",
"manipulators": [
{
"type": "basic",
"from": { "key_code": "m", "modifiers": { "mandatory": ["command"] } },
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^com\\.googlecode\\.iterm2$",
"^co\\.zeit\\.hyperterm$",
"^co\\.zeit\\.hyper$",
"^com\\.google\\.Chrome\\.canary$",
"^com\\.google\\.Chrome\\.dev$",
"^com\\.google\\.Chrome$",
"^com\\.microsoft\\.VSCode$"
]
}
]
}
]
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
THANK YOU !!