Last active
October 25, 2021 15:53
-
-
Save cokert/45d1ef2b555507fbb3e7a84f1171c7a9 to your computer and use it in GitHub Desktop.
Custom Karibiner mods
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": "TimTom's Mods", | |
"rules": [ | |
{ | |
"description": "Cmd+D == Cmd+L in Chrome Firefox and Safari", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"mandatory": [ | |
"left_gui" | |
] | |
}, | |
"key_code": "d" | |
}, | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"org.mozilla.firefox", | |
"com.google.Chrome", | |
"com.apple.Safari" | |
] | |
} | |
], | |
"to": [ | |
{ | |
"repeat": true, | |
"key_code": "l", | |
"modifiers": [ | |
"left_gui" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Cmd+Tab > Ctrl+Space in Firefox", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
] | |
}, | |
"key_code": "tab" | |
}, | |
"to": [ | |
{ | |
"repeat": true, | |
"key_code": "spacebar", | |
"modifiers": [ | |
"left_control" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"description": "", | |
"bundle_identifiers": [ | |
"org.mozilla.firefox" | |
] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"mandatory": [ | |
"left_control", | |
"left_shift" | |
] | |
}, | |
"key_code": "tab" | |
}, | |
"to": [ | |
{ | |
"repeat": true, | |
"key_code": "spacebar", | |
"modifiers": [ | |
"left_control", | |
"left_shift" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"description": "", | |
"bundle_identifiers": [ | |
"org.mozilla.firefox" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "cmd+q to cmd+w ", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"mandatory": [ | |
"left_gui" | |
] | |
}, | |
"key_code": "q" | |
}, | |
"to": [ | |
{ | |
"repeat": true, | |
"modifiers": [ | |
"left_gui" | |
], | |
"key_code": "w" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "cmd+shift+q to cmd+w", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"mandatory": [ | |
"left_gui", | |
"left_shift" | |
] | |
}, | |
"key_code": "q" | |
}, | |
"to": [ | |
{ | |
"repeat": false, | |
"key_code": "q", | |
"modifiers": [ | |
"left_gui" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
The first maps Cmd+D to Cmd+L in Firefox, Safari, and Chrome. The reason for that is alt+d on windows always takes you to the address bar and I've been using that combo for 20+ years.
The second one maps cmd+tab to cmd+space in Firefox. Long story involving a specific keyboard with custom mappings, but cmd+space triggers the "Fast Tab Switcher" plugin.
Added cmd+shift+tab to second mapping
Added mapping for cmd+q to cmd+w and cmd+shift+q to cmd+q. I've accidentally hit cmd+q too many times to count.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To edit: https://genesy.github.io/karabiner-complex-rules-generator/