Skip to content

Instantly share code, notes, and snippets.

@lpld
Last active July 14, 2017 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpld/2e3515d8bd8a2e2cd93e5374d4545368 to your computer and use it in GitHub Desktop.
Save lpld/2e3515d8bd8a2e2cd93e5374d4545368 to your computer and use it in GitHub Desktop.
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 1000
},
"rules": [
{
"description": "Change Right_command + Tab to Ctrl+Tab",
"manipulators": [
{
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "tab",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + Ctrl+W to Delete word (Option+Backspace)",
"manipulators": [
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"right_command",
"left_control"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + Ctrl+U to Delete to beginning of the line (Cmd+Backspace)",
"manipulators": [
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"right_command",
"left_control"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + U to Undo (Cmd+Z)",
"manipulators": [
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + R to Redo (Shift+Cmd+Z)",
"manipulators": [
{
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_command",
"left_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + B to One word backwards (Option+Left)",
"manipulators": [
{
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + W, Right_command + E to One word forward (Option+Right)",
"manipulators": [
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + 4 to Cmd+Right (Similar to Vim $)",
"manipulators": [
{
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Left_command + 6 to Cmd+Left (Similar to Vim ^)",
"manipulators": [
{
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + Y to Yank (Cmd+C), yank whole line with shift",
"manipulators": [
{
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "c",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"right_command",
"left_shift"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
},
{
"key_code": "right_arrow",
"modifiers": [
"left_command",
"left_shift"
]
},
{
"key_code": "c",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + P to Paste (Cmd+V)",
"manipulators": [
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "v",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + X to Forward delete",
"manipulators": [
{
"from": {
"key_code": "x",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "delete_forward"
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + Shift + S to delete whole line",
"manipulators": [
{
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"right_command",
"right_shift"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
},
{
"key_code": "right_arrow",
"modifiers": [
"left_command",
"left_shift"
]
},
{
"key_code": "delete_or_backspace"
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + D to Delete/Cut (Cmd+X), cut the whole line with shift",
"manipulators": [
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "x",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"right_command",
"right_shift"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
},
{
"key_code": "right_arrow",
"modifiers": [
"left_command",
"left_shift"
]
},
{
"key_code": "x",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + G to Cmd+Up",
"manipulators": [
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + Shift+G to Cmd+Down",
"manipulators": [
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"right_command",
"right_shift"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Right_command + O to New line (Cmd+Right, Shift+Return), Right_command + Shift + O to New line above",
"manipulators": [
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
},
{
"key_code": "return_or_enter",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"right_command",
"left_shift"
]
}
},
"to": [
{
"key_code": "up_arrow"
},
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
},
{
"key_code": "return_or_enter",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Left_control + H to Delete_or_Backspace",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
],
"type": "basic"
}
]
},
{
"description": "Change caps_lock to control if pressed with other keys, to escape if pressed alone.",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"description": "Change return_or_enter to left_control if pressed with other keys, to enter if pressed alone.",
"manipulators": [
{
"from": {
"key_code": "return_or_enter",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "return_or_enter"
}
],
"type": "basic"
}
]
},
{
"description": "Change right_command+hjkl to arrow keys",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
}
]
},
"devices": [],
"fn_function_keys": {
"f1": "display_brightness_decrement",
"f10": "mute",
"f11": "volume_decrement",
"f12": "volume_increment",
"f2": "display_brightness_increment",
"f3": "mission_control",
"f4": "launchpad",
"f5": "illumination_decrement",
"f6": "illumination_increment",
"f7": "rewind",
"f8": "play_or_pause",
"f9": "fastforward"
},
"name": "Default profile",
"selected": true,
"simple_modifications": {
"down_arrow": "vk_none",
"escape": "vk_none",
"left_arrow": "vk_none",
"right_arrow": "vk_none",
"up_arrow": "vk_none"
},
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "ansi"
}
},
{
"complex_modifications": {
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 1000
},
"rules": [
{
"description": "Change Ctrl+W to Delete word (Option+Backspace)",
"manipulators": [
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Ctrl+U to Delete to beginning of the line (Cmd+Backspace)",
"manipulators": [
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change U to Undo (Cmd+Z)",
"manipulators": [
{
"from": {
"key_code": "u"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Ctrl+R to Redo (Shift+Cmd+Z)",
"manipulators": [
{
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_command",
"left_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change B to One word backwards (Option+Left)",
"manipulators": [
{
"from": {
"key_code": "b",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change W to One word forward (Option+Right)",
"manipulators": [
{
"from": {
"key_code": "w",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change ^ (Shift+4) to Cmd+Right (Similar to Vim $)",
"manipulators": [
{
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"left_shift"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Shift + 6 to Cmd+Left (Similar to Vim ^)",
"manipulators": [
{
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"right_shift"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Y to Yank (Cmd+C), yank whole line with shift",
"manipulators": [
{
"from": {
"key_code": "y"
},
"to": [
{
"key_code": "c",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
},
{
"key_code": "right_arrow",
"modifiers": [
"left_command",
"left_shift"
]
},
{
"key_code": "c",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change P to Paste (Cmd+V)",
"manipulators": [
{
"from": {
"key_code": "p"
},
"to": [
{
"key_code": "v",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change D to Delete/Cut (Cmd+X), cut the whole line with shift",
"manipulators": [
{
"from": {
"key_code": "d"
},
"to": [
{
"key_code": "x",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
},
{
"key_code": "right_arrow",
"modifiers": [
"left_command",
"left_shift"
]
},
{
"key_code": "x",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change G to Cmd+Up",
"manipulators": [
{
"from": {
"key_code": "g"
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Shift+G to Cmd+Down",
"manipulators": [
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change O to New line (Cmd+Right, Shift+Return)",
"manipulators": [
{
"from": {
"key_code": "o"
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
},
{
"key_code": "return_or_enter",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Left_control + H to Delete_or_Backspace",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
],
"type": "basic"
}
]
},
{
"description": "Change caps_lock to control if pressed with other keys, to escape if pressed alone.",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"description": "Change hjkl to arrow keys",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
}
]
},
"devices": [],
"fn_function_keys": {
"f1": "display_brightness_decrement",
"f10": "mute",
"f11": "volume_decrement",
"f12": "volume_increment",
"f2": "display_brightness_increment",
"f3": "mission_control",
"f4": "launchpad",
"f5": "illumination_decrement",
"f6": "illumination_increment",
"f7": "rewind",
"f8": "play_or_pause",
"f9": "fastforward"
},
"name": "Normal mode",
"selected": false,
"simple_modifications": {},
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "ansi"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment