Skip to content

Instantly share code, notes, and snippets.

@cm-wada-yusuke
Created June 10, 2020 12:48
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 cm-wada-yusuke/caa906c8c448e2f4c052aeb5d26a9054 to your computer and use it in GitHub Desktop.
Save cm-wada-yusuke/caa906c8c448e2f4c052aeb5d26a9054 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.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": [
{
"description": "right_command+space => eisu, left_command+space => kana",
"manipulators": [
{
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "japanese_kana"
}
],
"type": "basic"
},
{
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": [
"left_command"
]
}
},
"to": [
{
"key_code": "japanese_eisuu"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + n to down arrow",
"manipulators": [
{
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + b to left arrow",
"manipulators": [
{
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + f to right arrow",
"manipulators": [
{
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + p to up arrow",
"manipulators": [
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + h to delete",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + j to return",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "return_or_enter"
}
],
"type": "basic"
}
]
},
{
"description": "Change right_option + up_arrow to page_up",
"manipulators": [
{
"from": {
"key_code": "up_arrow",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
}
]
},
{
"description": "Change right_option + down_arrow to page_down",
"manipulators": [
{
"from": {
"key_code": "down_arrow",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + [ to page_down",
"manipulators": [
{
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + [ to page_down",
"manipulators": [
{
"from": {
"key_code": "close_bracket",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + S to back word",
"manipulators": [
{
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + L to forward word",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + Shift + D delete word",
"manipulators": [
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "delete_forward",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Control + Shift + H backspace word",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 631,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
},
{
"from": {
"key_code": "fn"
},
"to": {
"key_code": "left_command"
}
},
{
"from": {
"key_code": "left_control"
},
"to": {
"key_code": "left_option"
}
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 17733,
"vendor_id": 1241
},
"ignore": false,
"manipulate_caps_lock_led": false,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
},
{
"from": {
"key_code": "left_command"
},
"to": {
"key_code": "left_option"
}
},
{
"from": {
"key_code": "left_control"
},
"to": {
"key_code": "left_command"
}
},
{
"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"
}
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 34304,
"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": {
"key_code": "rewind"
}
},
{
"from": {
"key_code": "f8"
},
"to": {
"key_code": "play_or_pause"
}
},
{
"from": {
"key_code": "f9"
},
"to": {
"key_code": "fastforward"
}
},
{
"from": {
"key_code": "f10"
},
"to": {
"key_code": "mute"
}
},
{
"from": {
"key_code": "f11"
},
"to": {
"key_code": "volume_decrement"
}
},
{
"from": {
"key_code": "f12"
},
"to": {
"key_code": "volume_increment"
}
}
],
"name": "Default profile",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [
{
"from": {
"key_code": "right_option"
},
"to": {
"key_code": "fn"
}
}
],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"country_code": 0,
"keyboard_type": "ansi",
"mouse_key_xy_scale": 100
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment