Skip to content

Instantly share code, notes, and snippets.

@derekedelaney
Last active June 17, 2020 15:43
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 derekedelaney/ee3578c63684719150b0f694fa88ce35 to your computer and use it in GitHub Desktop.
Save derekedelaney/ee3578c63684719150b0f694fa88ce35 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": 1000
},
"rules": [
{
"description": "Change up_arrow to right_shift if pressed with another key",
"manipulators": [
{
"from": {
"key_code": "up_arrow",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_shift"
}
],
"to_if_alone": [
{
"key_code": "up_arrow"
}
],
"to_if_held_down": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f1 to display_brightness_decrement",
"manipulators": [
{
"from": {
"key_code": "f1",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "display_brightness_decrement"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f2 to display_brightness_increment",
"manipulators": [
{
"from": {
"key_code": "f2",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "display_brightness_increment"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f3 to mission_control",
"manipulators": [
{
"from": {
"key_code": "f3",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "mission_control"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f4 to launchpad",
"manipulators": [
{
"from": {
"key_code": "f4",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "launchpad"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f5 to illumination_decrement",
"manipulators": [
{
"from": {
"key_code": "f5",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "illumination_decrement"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f6 to illumination_increment",
"manipulators": [
{
"from": {
"key_code": "f6",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "illumination_increment"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f7 to rewind",
"manipulators": [
{
"from": {
"key_code": "f7",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "rewind"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f8 to play_or_pause",
"manipulators": [
{
"from": {
"key_code": "f8",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "play_or_pause"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f9 to fastforward",
"manipulators": [
{
"from": {
"key_code": "f9",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "fastforward"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f10 to mute",
"manipulators": [
{
"from": {
"key_code": "f10",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "mute"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f11 to volume_decrement",
"manipulators": [
{
"from": {
"key_code": "f11",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "volume_decrement"
}
],
"type": "basic"
}
]
},
{
"description": "left_control + f12 to volume_increment",
"manipulators": [
{
"from": {
"key_code": "f12",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "volume_increment"
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 632,
"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": 521,
"vendor_id": 1241
},
"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": "New Poker II",
"selected": false,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "escape"
}
},
{
"from": {
"key_code": "end"
},
"to": {
"key_code": "power"
}
},
{
"from": {
"key_code": "escape"
},
"to": {
"key_code": "grave_accent_and_tilde"
}
}
],
"virtual_hid_keyboard": {
"country_code": 0
}
},
{
"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
},
"rules": []
},
"devices": [],
"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",
"selected": true,
"simple_modifications": [],
"virtual_hid_keyboard": {
"country_code": 0
}
}
]
}
@derekedelaney
Copy link
Author

derekedelaney commented Jun 16, 2020

~/.config/karabiner/karabiner.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment