Skip to content

Instantly share code, notes, and snippets.

@catherineomega
Created October 20, 2022 17:13
Show Gist options
  • Save catherineomega/81ddc2dc75d69e700c41d884b07f72d6 to your computer and use it in GitHub Desktop.
Save catherineomega/81ddc2dc75d69e700c41d884b07f72d6 to your computer and use it in GitHub Desktop.
A Karabiner-Elements 'complex modification' JSON for use with Parsec remote desktop to disable Left-Command-W and Left-Command-Q when connected to a remote Windows computer..
{
"title": "Parsec macOS client, Windows Host",
"rules": [
{
"description": "Disable Cmd-W and Cmd-Q in Parsec, but allow Cmd-Tab.",
"manipulators": [
{
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"left_command"
]
}
},
"to": [
{
"key_code": "q"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^tv.parsec.www"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"left_command"
]
}
},
"to": [
{
"key_code": "w"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^tv.parsec.www"
]
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment