Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Karabiner-Elements Google Chrome Shortcuts Complex Modifications
{
"title": "Chrome Shortcuts",
"rules": [
{
"description": "Search (Control+F)",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"left_control"
]
},
"key_code": "f"
},
"conditions": [
{
"type": "frontmost_application_if",
"description": "Google Chrome",
"bundle_identifiers": [
"^com\\.google\\.Chrome$"
]
}
],
"to": [
{
"repeat": true,
"key_code": "f",
"modifiers": [
"left_gui"
]
}
]
}
]
},
{
"description": "New tab (Control+T)",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"left_control"
]
},
"key_code": "t"
},
"conditions": [
{
"type": "frontmost_application_if",
"description": "Google Chrome",
"bundle_identifiers": [
"^com\\.google\\.Chrome$"
]
}
],
"to": [
{
"repeat": true,
"key_code": "t",
"modifiers": [
"left_gui"
]
}
]
}
]
},
{
"description": "Close tab (Control+W)",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"left_control"
]
},
"key_code": "w"
},
"conditions": [
{
"type": "frontmost_application_if",
"description": "Google Chrome",
"bundle_identifiers": [
"^com\\.google\\.Chrome$"
]
}
],
"to": [
{
"repeat": true,
"key_code": "w",
"modifiers": [
"left_gui"
]
}
]
}
]
},
{
"description": "Open Downloads (Control+J)",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"left_control"
]
},
"key_code": "j"
},
"conditions": [
{
"type": "frontmost_application_if",
"description": "Google Chrome",
"bundle_identifiers": [
"^com\\.google\\.Chrome$"
]
}
],
"to": [
{
"repeat": true,
"key_code": "l",
"modifiers": [
"left_gui",
"left_alt"
]
}
]
}
]
}
]
}
Place chrome_shortcuts.json file in ~/.config/karabiner/assets/complex_modifications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment