Created
February 11, 2020 17:37
-
-
Save qdm12/755a08ff377360dfba13e54325cf6a0f to your computer and use it in GitHub Desktop.
Karabiner Elements configuration file for Mac OS
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": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"name": "Default profile", | |
"selected": true, | |
"virtual_hid_keyboard": { | |
"country_code": 0, | |
"mouse_key_xy_scale": 100 | |
}, | |
"simple_modifications": [], | |
"complex_modifications": { | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 50, | |
"basic.to_delayed_action_delay_milliseconds": 500, | |
"basic.to_if_alone_timeout_milliseconds": 1000, | |
"basic.to_if_held_down_threshold_milliseconds": 500, | |
"mouse_motion_to_scroll.speed": 100 | |
}, | |
"rules": [ | |
{ | |
"manipulators": [ | |
{ | |
"description": "save", | |
"type": "basic", | |
"from": { | |
"key_code": "s", | |
"modifiers": { "mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "s", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "replace", | |
"type": "basic", | |
"from": { | |
"key_code": "h", | |
"modifiers": { "mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "f", | |
"modifiers": ["left_command", "left_alt"] } | |
] }, | |
{ | |
"description": "find in files", | |
"type": "basic", | |
"from": { | |
"key_code": "f", | |
"modifiers": { "mandatory": ["left_control", "left_shift"] } | |
}, | |
"to": [ { | |
"key_code": "f", | |
"modifiers": ["left_command", "left_shift"] } | |
] }, | |
{ | |
"description": "replace in files", | |
"type": "basic", | |
"from": { | |
"key_code": "h", | |
"modifiers": { "mandatory": ["left_control", "left_shift"] } | |
}, | |
"to": [ { | |
"key_code": "h", | |
"modifiers": ["left_command", "left_shift"] } | |
] }, | |
{ | |
"description": "copy", | |
"type": "basic", | |
"from": { | |
"key_code": "c", | |
"modifiers": { "mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "c", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "cut", | |
"type": "basic", | |
"from": { | |
"key_code": "x", | |
"modifiers": { "mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "x", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "paste", | |
"type": "basic", | |
"from": { | |
"key_code": "v", | |
"modifiers": { "mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "v", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "print screen", | |
"type": "basic", | |
"from": { | |
"key_code": "print_screen" | |
}, | |
"to": [ { | |
"key_code": "3", | |
"modifiers": ["left_command", "left_shift"] } | |
] }, | |
{ | |
"description": "word left", | |
"type": "basic", | |
"from": { | |
"key_code": "left_arrow", | |
"modifiers": { "mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "left_arrow", | |
"modifiers": ["left_alt"] } | |
] }, | |
{ | |
"description": "word right", | |
"type": "basic", | |
"from": { | |
"key_code": "right_arrow", | |
"modifiers": { "mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "right_arrow", | |
"modifiers": ["left_alt"] } | |
] }, | |
{ | |
"description": "word right selected", | |
"type": "basic", | |
"from": { | |
"key_code": "right_arrow", | |
"modifiers": { | |
"mandatory": ["left_control", "left_shift"] } | |
}, | |
"to": [ { | |
"key_code": "right_arrow", | |
"modifiers": ["left_alt", "left_shift"] } | |
] }, | |
{ | |
"description": "word left selected", | |
"type": "basic", | |
"from": { | |
"key_code": "left_arrow", | |
"modifiers": { | |
"mandatory": ["left_control", "left_shift"] } | |
}, | |
"to": [ { | |
"key_code": "left_arrow", | |
"modifiers": ["left_alt", "left_shift"] } | |
] }, | |
{ | |
"description": "undo", | |
"type": "basic", | |
"from": { | |
"key_code": "z", | |
"modifiers": { | |
"mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "z", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "redo", | |
"type": "basic", | |
"from": { | |
"key_code": "y", | |
"modifiers": { | |
"mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "z", | |
"modifiers": ["left_command", "left_shift"] } | |
] }, | |
{ | |
"description": "vscode palette", | |
"type": "basic", | |
"from": { | |
"key_code": "p", | |
"modifiers": { | |
"mandatory": ["left_control", "left_shift"] } | |
}, | |
"to": [ { | |
"key_code": "p", | |
"modifiers": ["left_command", "left_shift"] } | |
] }, | |
{ | |
"description": "alt tab", | |
"type": "basic", | |
"from": { | |
"key_code": "tab", | |
"modifiers": { | |
"mandatory": ["left_alt"] } | |
}, | |
"to": [ { | |
"key_code": "tab", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "alt tab", | |
"type": "basic", | |
"from": { | |
"key_code": "f", | |
"modifiers": { | |
"mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "f", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "select all", | |
"type": "basic", | |
"from": { | |
"key_code": "a", | |
"modifiers": { | |
"mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "a", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "new tab", | |
"type": "basic", | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "t", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "comment lines", | |
"type": "basic", | |
"from": { | |
"key_code": "slash", | |
"modifiers": { | |
"mandatory": ["left_control"] } | |
}, | |
"to": [ { | |
"key_code": "slash", | |
"modifiers": ["left_command"] } | |
] }, | |
{ | |
"description": "lock system", | |
"type": "basic", | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"mandatory": ["left_command"] } | |
}, | |
"to": [ { | |
"key_code": "q", | |
"modifiers": ["left_command", "left_control"] } | |
] | |
} | |
] | |
} | |
] | |
}, | |
"fn_function_keys": [ | |
{ | |
"from": { | |
"key_code": "f1" | |
}, | |
"to": { | |
"consumer_key_code": "display_brightness_decrement" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f2" | |
}, | |
"to": { | |
"consumer_key_code": "display_brightness_increment" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f3" | |
}, | |
"to": { | |
"key_code": "mission_control" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f4" | |
}, | |
"to": { | |
"key_code": "launchpad" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f5" | |
}, | |
"to": { | |
"key_code": "illumination_decrement" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f6" | |
}, | |
"to": { | |
"key_code": "illumination_increment" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f7" | |
}, | |
"to": { | |
"consumer_key_code": "rewind" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f8" | |
}, | |
"to": { | |
"consumer_key_code": "play_or_pause" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f9" | |
}, | |
"to": { | |
"consumer_key_code": "fastforward" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f10" | |
}, | |
"to": { | |
"consumer_key_code": "mute" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f11" | |
}, | |
"to": { | |
"consumer_key_code": "volume_decrement" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "f12" | |
}, | |
"to": { | |
"consumer_key_code": "volume_increment" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment