Skip to content

Instantly share code, notes, and snippets.

@Geczy
Last active May 3, 2023 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Geczy/4d82efa12ec8c84e45468b4463f7c7a8 to your computer and use it in GitHub Desktop.
Save Geczy/4d82efa12ec8c84e45468b4463f7c7a8 to your computer and use it in GitHub Desktop.
dota 2 keychron q1 keymaps with karabiner
{
"title": "Swap Left Option/Command only in Dota2",
"rules": [
{
"description": "Left Control to Option",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control"
},
"to": [
{
"key_code": "left_option"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.valvesoftware.dota2"
]
}
]
}
]
},
{
"description": "Left Command to Control",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_control"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.valvesoftware.dota2"
]
}
]
}
]
},
{
"description": "Left Option to Command",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_option"
},
"to": [
{
"key_code": "left_command"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.valvesoftware.dota2"
]
}
]
}
]
},
{
"description": "Play to F8",
"manipulators": [
{
"type": "basic",
"from": {
"consumer_key_code": "play_or_pause"
},
"to": [
{
"key_code": "f8"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.valvesoftware.dota2"
]
}
]
}
]
},
{
"description": "Next to F9",
"manipulators": [
{
"type": "basic",
"from": {
"consumer_key_code": "scan_next_track"
},
"to": [
{
"key_code": "f9"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.valvesoftware.dota2"
]
}
]
}
]
},
{
"description": "Brightness to F1",
"manipulators": [
{
"type": "basic",
"from": {
"consumer_key_code": "display_brightness_decrement"
},
"to": [
{
"key_code": "f1"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.valvesoftware.dota2"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment