Last active
August 29, 2024 11:14
-
-
Save backpackerhh/2448998967f178f0114de6c6a3eb37df to your computer and use it in GitHub Desktop.
Karabiner-Elements config
This file contains 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
{ | |
"global": { "show_in_menu_bar": false }, | |
"profiles": [ | |
{ | |
"devices": [ | |
{ | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": true, | |
"product_id": 45913, | |
"vendor_id": 1133 | |
}, | |
"ignore": false | |
} | |
], | |
"name": "Default profile" | |
}, | |
{ | |
"complex_modifications": { | |
"rules": [ | |
{ | |
"description": "Linux: Finder -> Show/Hide Hidden Files", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.apple\\.finder$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "h", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "period", | |
"modifiers": ["left_command", "left_shift"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Finder -> Remove File", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.apple\\.finder$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { "key_code": "delete_forward" }, | |
"to": [ | |
{ | |
"key_code": "delete_or_backspace", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Finder -> Open Directory", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.apple\\.finder$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { "key_code": "return_or_enter" }, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.apple\\.finder$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { "key_code": "keypad_enter" }, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Finder -> Go Parent Directory", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.apple\\.finder$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { "key_code": "delete_or_backspace" }, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Finder -> Rename", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.apple\\.finder$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { "key_code": "f2" }, | |
"to": [{ "key_code": "return_or_enter" }], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Navigate Tabs", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "1", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "1", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_1", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_1", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "2", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "2", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_2", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_2", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "3", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "3", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_3", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_3", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "4", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "4", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_4", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_4", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "5", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "5", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_5", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_5", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "6", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "6", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_6", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_6", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "7", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "7", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_7", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_7", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "8", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "8", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_8", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_8", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "9", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "9", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_9", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_9", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Quit Program", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "q", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "q", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Up/Down/Left/Right", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "left_arrow", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": ["left_option"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "right_arrow", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": ["left_option"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "up_arrow", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "down_arrow", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Copy/Paste/Cut", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.microsoft\\.VSCode" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "c", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.microsoft\\.VSCode" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "v", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.microsoft\\.VSCode" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "x", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "x", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Terminal -> Copy/Paste", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.googlecode\\.iterm2$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "c", | |
"modifiers": { "mandatory": ["control", "shift"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.googlecode\\.iterm2$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "v", | |
"modifiers": { "mandatory": ["control", "shift"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Terminal -> Clear from Cursor to Beginning of Line", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.googlecode\\.iterm2$"], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "u", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "w", | |
"modifiers": ["left_control"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Undo", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "z", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "z", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Redo", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "z", | |
"modifiers": { "mandatory": ["control", "shift"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "z", | |
"modifiers": ["left_command", "left_shift"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Select-All", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.microsoft\\.VSCode", | |
"^com\\.googlecode\\.iterm2$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "a", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "a", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Save", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "s", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "s", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: New Window", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "n", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "n", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "n", | |
"modifiers": { "mandatory": ["control", "shift"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "n", | |
"modifiers": ["left_command", "left_shift"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Close Window", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.microsoft\\.VSCode" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "w", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "w", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: New Tab", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "t", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "t", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Find", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "f", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "f", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "g", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "g", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Open", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "o", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "o", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Zoom", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_hyphen", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_hyphen", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_plus", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_plus", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "keypad_0", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_0", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "slash", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "slash", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "close_bracket", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "close_bracket", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "0", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "0", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Bold/Italic/Underline", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "b", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "b", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "i", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "i", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": ["^com\\.microsoft\\.VSCode"], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "u", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "u", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Reload (F5, Ctrl+R)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.microsoft\\.VSCode" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "r", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "r", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.microsoft\\.VSCode" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "f5", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "r", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Browser -> Address Bar Focus", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "l", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "l", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Browser -> Save Bookmark", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "d", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "d", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Browser -> Open Link", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$", | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.microsoft\\.VSCode" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"modifiers": { "mandatory": ["control"] }, | |
"pointing_button": "button1" | |
}, | |
"to": [ | |
{ | |
"modifiers": ["left_command"], | |
"pointing_button": "button1" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$", | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.microsoft\\.VSCode" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"modifiers": { "mandatory": ["control", "shift"] }, | |
"pointing_button": "button1" | |
}, | |
"to": [ | |
{ | |
"modifiers": ["left_command", "left_shift"], | |
"pointing_button": "button1" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Browser -> Reopen Tabs", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "t", | |
"modifiers": { "mandatory": ["control", "shift"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "t", | |
"modifiers": ["left_command", "left_shift"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Browser -> Open Downloads", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "j", | |
"modifiers": { "mandatory": ["control"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "l", | |
"modifiers": ["left_command", "left_option"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Browser -> Open Bookmarks List", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "b", | |
"modifiers": { "mandatory": ["control", "shift"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "b", | |
"modifiers": ["left_command", "left_option"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Linux: Browser -> Navigate History", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "left_arrow", | |
"modifiers": { "mandatory": ["option"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^org\\.mozilla\\.firefoxdeveloperedition$", | |
"^org\\.mozilla\\.nightly$", | |
"^com\\.microsoft\\.Edge", | |
"^com\\.microsoft\\.edgemac", | |
"^com\\.google\\.Chrome$", | |
"^com\\.brave\\.Browser$", | |
"^com\\.apple\\.Safari$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "right_arrow", | |
"modifiers": { "mandatory": ["option"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": ["left_command"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [ | |
{ | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": true, | |
"product_id": 45913, | |
"vendor_id": 1133 | |
}, | |
"ignore": false, | |
"simple_modifications": [ | |
{ | |
"from": { "key_code": "grave_accent_and_tilde" }, | |
"to": [{ "key_code": "non_us_backslash" }] | |
}, | |
{ | |
"from": { "key_code": "left_command" }, | |
"to": [{ "key_code": "left_option" }] | |
}, | |
{ | |
"from": { "key_code": "left_option" }, | |
"to": [{ "key_code": "left_command" }] | |
}, | |
{ | |
"from": { "key_code": "non_us_backslash" }, | |
"to": [{ "key_code": "grave_accent_and_tilde" }] | |
}, | |
{ | |
"from": { "key_code": "right_command" }, | |
"to": [{ "key_code": "right_alt" }] | |
}, | |
{ | |
"from": { "key_code": "right_option" }, | |
"to": [{ "key_code": "right_control" }] | |
} | |
], | |
"treat_as_built_in_keyboard": true | |
}, | |
{ | |
"identifiers": { | |
"is_pointing_device": true, | |
"product_id": 45088, | |
"vendor_id": 1133 | |
}, | |
"ignore": false | |
} | |
], | |
"name": "David", | |
"selected": true | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment