Skip to content

Instantly share code, notes, and snippets.

@samuelkordik
Last active February 18, 2021 17:00
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 samuelkordik/05833c7cba0db6070bca2012432a57de to your computer and use it in GitHub Desktop.
Save samuelkordik/05833c7cba0db6070bca2012432a57de to your computer and use it in GitHub Desktop.
KE
{
"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": 1000,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
{
"manipulators": [
{
"description": "Change caps_lock to command+control+option+shift.",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "Changes Fn + ⌘ + ↓ to f22",
"from": {
"simultaneous": [
{
"key_code": "fn"
},
{
"key_code": "left_command"
},
{
"key_code": "down_arrow"
}
]
},
"to": [
{
"key_code": "f22"
}
]
}
]
},
{
"manipulators": [
{
"description": "Changes Fn + ⌘ + ← to f19",
"from": {
"simultaneous": [
{
"key_code": "fn"
},
{
"key_code": "left_command"
},
{
"key_code": "left_arrow"
}
]
},
"to": [
{
"key_code": "f19"
}
]
}
]
},
{
"manipulators": [
{
"description": "Changes Fn + ⌘ + ↑ to f20",
"from": {
"simultaneous": [
{
"key_code": "fn"
},
{
"key_code": "left_command"
},
{
"key_code": "up_arrow"
}
]
},
"to": [
{
"key_code": "f20"
}
]
}
]
},
{
"manipulators": [
{
"description": "Changes Fn + ⌘ + → to f21",
"from": {
"simultaneous": [
{
"key_code": "fn"
},
{
"key_code": "left_command"
},
{
"key_code": "right_arrow"
}
]
},
"to": [
{
"key_code": "f21"
}
]
}
]
},
{
"description": "Mouse button 6 + shift to mission_control applications",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"description": "Logitech USB Receiver",
"is_pointing_device": true,
"product_id": 50475,
"vendor_id": 1133
}
],
"type": "device_if"
}
],
"from": {
"modifiers": {
"mandatory": [
"shift"
]
},
"pointing_button": "button6"
},
"to": {
"key_code": "down_arrow",
"modifiers": [
"control"
]
},
"type": "basic"
}
]
},
{
"description": "Mouse button 6 to mission_control",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"description": "Logitech USB Receiver",
"is_pointing_device": true,
"product_id": 50475,
"vendor_id": 1133
}
],
"type": "device_if"
}
],
"from": {
"modifiers": {
"optional": [
"any"
]
},
"pointing_button": "button6"
},
"to": {
"key_code": "up_arrow",
"modifiers": [
"control"
]
},
"type": "basic"
}
]
},
{
"description": "Mouse button 4 to back",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"description": "Logitech USB Receiver",
"is_pointing_device": true,
"product_id": 50475,
"vendor_id": 1133
}
],
"type": "device_if"
}
],
"from": {
"modifiers": {
"optional": [
"any"
]
},
"pointing_button": "button4"
},
"to": {
"key_code": "open_bracket",
"modifiers": [
"command"
]
},
"type": "basic"
}
]
},
{
"description": "Mouse button 3 to forward",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"description": "Logitech USB Receiver",
"is_pointing_device": true,
"product_id": 50475,
"vendor_id": 1133
}
],
"type": "device_if"
}
],
"from": {
"modifiers": {
"optional": [
"any"
]
},
"pointing_button": "button3"
},
"to": {
"key_code": "close_bracket",
"modifiers": [
"command"
]
},
"type": "basic"
}
]
},
{
"description": "Change right_shift x 2 to mission_control",
"manipulators": [
{
"conditions": [
{
"name": "right_shift pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "right_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "mission_control"
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "right_shift pressed",
"value": 1
}
},
{
"key_code": "right_shift"
}
],
"to_delayed_action": {
"to_if_canceled": [
{
"set_variable": {
"name": "right_shift pressed",
"value": 0
}
}
],
"to_if_invoked": [
{
"set_variable": {
"name": "right_shift pressed",
"value": 0
}
}
]
},
"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": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 282,
"vendor_id": 5426
},
"ignore": false,
"manipulate_caps_lock_led": false,
"simple_modifications": [
{
"from": {
"key_code": "application"
},
"to": {
"key_code": "f18"
}
},
{
"from": {
"key_code": "left_gui"
},
"to": {
"key_code": "left_option"
}
},
{
"from": {
"key_code": "left_option"
},
"to": {
"key_code": "left_command"
}
}
]
},
{
"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": []
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 13386,
"vendor_id": 1008
},
"ignore": false,
"manipulate_caps_lock_led": false,
"simple_modifications": [
{
"from": {
"consumer_key_code": "fastforward"
},
"to": {
"consumer_key_code": "volume_increment"
}
},
{
"from": {
"consumer_key_code": "play_or_pause"
},
"to": {
"consumer_key_code": "volume_decrement"
}
},
{
"from": {
"consumer_key_code": "rewind"
},
"to": {
"consumer_key_code": "mute"
}
},
{
"from": {
"key_code": "left_command"
},
"to": {
"key_code": "left_option"
}
},
{
"from": {
"key_code": "left_gui"
},
"to": {
"key_code": "left_command"
}
},
{
"from": {
"key_code": "left_option"
},
"to": {
"key_code": "left_command"
}
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": false,
"is_pointing_device": true,
"product_id": 50475,
"vendor_id": 1133
},
"ignore": false,
"manipulate_caps_lock_led": false,
"simple_modifications": []
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 50475,
"vendor_id": 1133
},
"ignore": false,
"manipulate_caps_lock_led": false,
"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": "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"
}
}
],
"name": "Default profile",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [
{
"from": {
"key_code": "right_alt"
},
"to": {
"key_code": "f18"
}
},
{
"from": {
"key_code": "right_option"
},
"to": {
"key_code": "f18"
}
}
],
"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