Skip to content

Instantly share code, notes, and snippets.

@iAbadia
Last active July 10, 2022 11:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iAbadia/460346efceae7fc7540f08ce4ab49012 to your computer and use it in GitHub Desktop.
Save iAbadia/460346efceae7fc7540f08ce4ab49012 to your computer and use it in GitHub Desktop.
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