Last active
July 10, 2022 11:28
-
-
Save iAbadia/460346efceae7fc7540f08ce4ab49012 to your computer and use it in GitHub Desktop.
Karabiner-Elements Google Chrome Shortcuts Complex Modifications
This file contains hidden or 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": "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" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
This file contains hidden or 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
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