Skip to content

Instantly share code, notes, and snippets.

@xream
Created July 14, 2017 03:17
Show Gist options
  • Save xream/e72e5f23f63aa67447b873cfc2b85ddf to your computer and use it in GitHub Desktop.
Save xream/e72e5f23f63aa67447b873cfc2b85ddf to your computer and use it in GitHub Desktop.
karabiner
{
"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": [
{
"manipulators": [
{
"description": "spacebar: spacebar, left_command+left_control+left_option",
"from": {
"key_code": "spacebar",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command",
"modifiers": [
"left_control",
"left_option"
]
}
],
"to_if_alone": [
{
"key_code": "spacebar"
}
],
"type": "basic"
},
{
"description": "caps_lock: escape, left_control",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
},
{
"description": "left_shift: f19, left_shift",
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift"
}
],
"to_if_alone": [
{
"key_code": "f19"
}
],
"type": "basic"
},
{
"description": "left_command: f16, left_command",
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"to_if_alone": [
{
"key_code": "f16"
}
],
"type": "basic"
},
{
"description": "left_option: f17, left_option",
"from": {
"key_code": "left_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_option"
}
],
"to_if_alone": [
{
"key_code": "f17"
}
],
"type": "basic"
},
{
"description": "left_control: f18, left_control",
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "f18"
}
],
"type": "basic"
},
{
"description": "right_command: f15, right_command",
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"to_if_alone": [
{
"key_code": "f15"
}
],
"type": "basic"
},
{
"description": "right_option: f14, right_option",
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_option"
}
],
"to_if_alone": [
{
"key_code": "f14"
}
],
"type": "basic"
},
{
"description": "grave_accent_and_tilde: grave_accent_and_tilde, fn",
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn"
}
],
"to_if_alone": [
{
"key_code": "grave_accent_and_tilde"
}
],
"type": "basic"
},
{
"description": "fn+h: home",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "home"
}
],
"type": "basic"
},
{
"description": "fn+l: end",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "end"
}
],
"type": "basic"
},
{
"description": "fn+j: page_down",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
},
{
"description": "fn+k: page_up",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": true,
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 24672,
"vendor_id": 65261
},
"ignore": true
},
{
"disable_built_in_keyboard_if_exists": false,
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 627,
"vendor_id": 1452
},
"ignore": false
},
{
"disable_built_in_keyboard_if_exists": false,
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 30069,
"vendor_id": 65261
},
"ignore": true
},
{
"disable_built_in_keyboard_if_exists": false,
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 30069,
"vendor_id": 52685
},
"ignore": true
},
{
"disable_built_in_keyboard_if_exists": false,
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 61166,
"vendor_id": 6421
},
"ignore": true
}
],
"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": {},
"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