Last active
February 23, 2021 05:07
-
-
Save ranelpadon/2d5ec5e13445f38bd88ba4d8fa0ef70e to your computer and use it in GitHub Desktop.
Colemak DHk - Karabiner Elements - Config File
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": [ | |
{ | |
"complex_modifications": { | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 250, | |
"basic.to_delayed_action_delay_milliseconds": 500, | |
"basic.to_if_alone_timeout_milliseconds": 250, | |
"basic.to_if_held_down_threshold_milliseconds": 250, | |
"mouse_motion_to_scroll.speed": 100 | |
}, | |
"rules": [ | |
{ | |
"description": "Arrow navigation, opening apps, etc.", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "right_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_shift" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "quote" | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "quote-mode", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "quote-mode", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "quote" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "g" | |
}, | |
"to": [ | |
{ | |
"key_code": "5" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "f" | |
}, | |
"to": [ | |
{ | |
"key_code": "4" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "d" | |
}, | |
"to": [ | |
{ | |
"key_code": "3" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "s" | |
}, | |
"to": [ | |
{ | |
"key_code": "2" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "a" | |
}, | |
"to": [ | |
{ | |
"key_code": "1" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "t" | |
}, | |
"to": [ | |
{ | |
"key_code": "0" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "r" | |
}, | |
"to": [ | |
{ | |
"key_code": "9" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "e" | |
}, | |
"to": [ | |
{ | |
"key_code": "8" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "w" | |
}, | |
"to": [ | |
{ | |
"key_code": "7" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "quote-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "q" | |
}, | |
"to": [ | |
{ | |
"key_code": "6" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "right-option-mode", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "right-option-mode", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "right-option-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "f" | |
}, | |
"to": [ | |
{ | |
"key_code": "close_bracket" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "right-option-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "d" | |
}, | |
"to": [ | |
{ | |
"key_code": "open_bracket" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "right-option-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "s" | |
}, | |
"to": [ | |
{ | |
"key_code": "equal_sign" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "right-option-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "a" | |
}, | |
"to": [ | |
{ | |
"key_code": "backslash" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "right-option-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "r" | |
}, | |
"to": [ | |
{ | |
"key_code": "close_bracket", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "right-option-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "e" | |
}, | |
"to": [ | |
{ | |
"key_code": "open_bracket", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "right-option-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "w" | |
}, | |
"to": [ | |
{ | |
"key_code": "equal_sign", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "right-option-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "q" | |
}, | |
"to": [ | |
{ | |
"key_code": "backslash", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "spacebar" | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "spacebar-mode", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "spacebar-mode", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "spacebar" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "h" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "j" | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "k" | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "l" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"description": "Space-j: S-Enter", | |
"from": { | |
"key_code": "y" | |
}, | |
"to": [ | |
{ | |
"key_code": "return_or_enter", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"description": "Space-l: Enter", | |
"from": { | |
"key_code": "u" | |
}, | |
"to": [ | |
{ | |
"key_code": "return_or_enter" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"description": "Space-u: Escape", | |
"from": { | |
"key_code": "i" | |
}, | |
"to": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"description": "Space-o: C-c", | |
"from": { | |
"key_code": "o" | |
}, | |
"to": [ | |
{ | |
"key_code": "x", | |
"modifiers": [ | |
"left_control" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"description": "Space-p: C-z", | |
"from": { | |
"key_code": "p" | |
}, | |
"to": [ | |
{ | |
"key_code": "b", | |
"modifiers": [ | |
"left_control" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "n" | |
}, | |
"to": [ | |
{ | |
"key_code": "delete_forward" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "m" | |
}, | |
"to": [ | |
{ | |
"key_code": "delete_or_backspace" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "d" | |
}, | |
"to": [ | |
{ | |
"key_code": "d", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "z" | |
}, | |
"to": [ | |
{ | |
"key_code": "z", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "x" | |
}, | |
"to": [ | |
{ | |
"key_code": "x", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "v" | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "b" | |
}, | |
"to": [ | |
{ | |
"key_code": "b", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "a" | |
}, | |
"to": [ | |
{ | |
"key_code": "a", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "e" | |
}, | |
"to": [ | |
{ | |
"key_code": "e", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "r" | |
}, | |
"to": [ | |
{ | |
"key_code": "r", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "f" | |
}, | |
"to": [ | |
{ | |
"key_code": "f", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "w" | |
}, | |
"to": [ | |
{ | |
"key_code": "w", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "q" | |
}, | |
"to": [ | |
{ | |
"key_code": "q", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "c" | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "s" | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"left_command", | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "t" | |
}, | |
"to": [ | |
{ | |
"key_code": "4", | |
"modifiers": [ | |
"left_command", | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "g" | |
}, | |
"to": [ | |
{ | |
"key_code": "o", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "semicolon" | |
}, | |
"to": [ | |
{ | |
"key_code": "j", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "Space-/ to Cmd-/; do here before we remap CapsLock below.", | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": [ | |
{ | |
"key_code": "slash", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "slash" | |
}, | |
"to": [ | |
{ | |
"key_code": "slash", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "quote" | |
}, | |
"to": [ | |
{ | |
"key_code": "slash", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "hyphen" | |
}, | |
"to": [ | |
{ | |
"key_code": "hyphen", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "equal_sign" | |
}, | |
"to": [ | |
{ | |
"key_code": "equal_sign", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacebar-mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "delete_or_backspace" | |
}, | |
"to": [ | |
{ | |
"key_code": "delete_or_backspace", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "p" | |
}, | |
"to": [ | |
{ | |
"key_code": "p", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "p", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "p" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "left_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_option" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "fn" | |
}, | |
"to": [ | |
{ | |
"key_code": "fn" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "j", | |
"modifiers": [ | |
"left_control" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_option" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "k", | |
"modifiers": [ | |
"left_control" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "grave_accent_and_tilde" | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "1" | |
}, | |
"to": [ | |
{ | |
"key_code": "1", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "2" | |
}, | |
"to": [ | |
{ | |
"key_code": "2", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "3" | |
}, | |
"to": [ | |
{ | |
"key_code": "3", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "4" | |
}, | |
"to": [ | |
{ | |
"key_code": "4", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "5" | |
}, | |
"to": [ | |
{ | |
"key_code": "5", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "6" | |
}, | |
"to": [ | |
{ | |
"key_code": "6", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "7" | |
}, | |
"to": [ | |
{ | |
"key_code": "7", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "8" | |
}, | |
"to": [ | |
{ | |
"key_code": "8", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "9" | |
}, | |
"to": [ | |
{ | |
"key_code": "9", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "0" | |
}, | |
"to": [ | |
{ | |
"key_code": "0", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "1", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "1" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "2", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "2" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "3", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "3" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "4", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "4" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "5", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "5" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "6", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "6" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "7", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "7" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "8", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "8" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "9", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "9" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "0", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "0" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "g" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "g" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "mission_control", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "f" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Alacritty.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "d" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "d" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Slack.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "s" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "s" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Postman.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "a" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "a" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Alfred 4.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "t" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "t" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Microsoft Teams.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "r" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "r" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Finder.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "e" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "e" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Firefox.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "w" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "w" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Stoplight Studio.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "q" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "q" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Sequel Ace.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "v" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "v" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Visual Studio Code.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "c" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "c" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'PyCharm.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "x" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "x" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Activity Monitor.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "z" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "z" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open '/System/Library/PreferencePanes/Network.prefPane'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "m" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "m" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Thonny.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "n" | |
}, | |
"to_after_key_up": [ | |
{ | |
"key_code": "n" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'Google Chrome.app'", | |
"halt": true | |
} | |
], | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 181, | |
"basic.to_if_held_down_threshold_milliseconds": 181 | |
} | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f1" | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a 'Alacritty.app'" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f2" | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a 'Visual Studio Code.app'" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f3" | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a 'Firefox Developer Edition.app'" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 610, | |
"vendor_id": 1452 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": true, | |
"simple_modifications": [] | |
} | |
], | |
"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": "fast_forward" | |
} | |
}, | |
{ | |
"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" | |
} | |
} | |
], | |
"name": "Default profile", | |
"parameters": { | |
"delay_milliseconds_before_open_device": 1000 | |
}, | |
"selected": true, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": { | |
"key_code": "left_shift" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_control" | |
}, | |
"to": { | |
"key_code": "left_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": { | |
"key_code": "left_command" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_command" | |
}, | |
"to": { | |
"key_code": "right_option" | |
} | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": { | |
"key_code": "right_command" | |
} | |
} | |
], | |
"virtual_hid_keyboard": { | |
"country_code": 0, | |
"mouse_key_xy_scale": 100 | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment