Skip to content

Instantly share code, notes, and snippets.

@cokert
Last active October 25, 2021 15:53
Show Gist options
  • Save cokert/45d1ef2b555507fbb3e7a84f1171c7a9 to your computer and use it in GitHub Desktop.
Save cokert/45d1ef2b555507fbb3e7a84f1171c7a9 to your computer and use it in GitHub Desktop.
Custom Karibiner mods
{
"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"
]
}
]
}
]
}
]
}
@cokert
Copy link
Author

cokert commented Oct 25, 2021

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