1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Update Karabiner config

This commit is contained in:
Daniel Barber 2018-03-18 16:50:41 -04:00
parent 71f14b5f57
commit 9190d51bd6
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -8,70 +8,324 @@
{ {
"complex_modifications": { "complex_modifications": {
"parameters": { "parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500, "basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000 "basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 250
}, },
"rules": [ "rules": [
{ {
"description": "Fn + numbers to media keys", "description": "Fn + numbers to media keys",
"manipulators": [ "manipulators": [
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "display_brightness_decrement"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "display_brightness_increment"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "mission_control"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "launchpad"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "illumination_decrement"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "illumination_increment"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "7", "key_code": "7",
"modifiers": { "mandatory": ["fn"] } "modifiers": {
"mandatory": [
"fn"
]
}
}, },
"to": [ "to": [
{ "key_code": "rewind" } {
"key_code": "rewind"
}
], ],
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "8", "key_code": "8",
"modifiers": { "mandatory": ["fn"] } "modifiers": {
"mandatory": [
"fn"
]
}
}, },
"to": [ "to": [
{ "key_code": "play_or_pause" } {
"key_code": "play_or_pause"
}
], ],
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "9", "key_code": "9",
"modifiers": { "mandatory": ["fn"] } "modifiers": {
"mandatory": [
"fn"
]
}
}, },
"to": [ "to": [
{ "key_code": "fastforward" } {
"key_code": "fastforward"
}
], ],
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "0", "key_code": "0",
"modifiers": { "mandatory": ["fn"] } "modifiers": {
"mandatory": [
"fn"
]
}
}, },
"to": [ "to": [
{ "key_code": "mute" } {
"key_code": "mute"
}
], ],
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "hyphen", "key_code": "hyphen",
"modifiers": { "mandatory": ["fn"] } "modifiers": {
"mandatory": [
"fn"
]
}
}, },
"to": [ "to": [
{ "key_code": "volume_decrement" } {
"key_code": "volume_decrement"
}
], ],
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "equal_sign", "key_code": "equal_sign",
"modifiers": { "mandatory": ["fn"] } "modifiers": {
"mandatory": [
"fn"
]
}
}, },
"to": [ "to": [
{ "key_code": "volume_increment" } {
"key_code": "volume_increment"
}
], ],
"type": "basic" "type": "basic"
} }
@ -81,6 +335,16 @@
"description": "Change right option into hyper key", "description": "Change right option into hyper key",
"manipulators": [ "manipulators": [
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "right_option", "key_code": "right_option",
"modifiers": { "modifiers": {
@ -107,6 +371,16 @@
"description": "Change Fn + h/j/k/l to Arrows", "description": "Change Fn + h/j/k/l to Arrows",
"manipulators": [ "manipulators": [
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "h", "key_code": "h",
"modifiers": { "modifiers": {
@ -130,6 +404,16 @@
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "j", "key_code": "j",
"modifiers": { "modifiers": {
@ -153,6 +437,16 @@
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "k", "key_code": "k",
"modifiers": { "modifiers": {
@ -176,6 +470,16 @@
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "l", "key_code": "l",
"modifiers": { "modifiers": {
@ -204,6 +508,16 @@
"description": "Change § key to escape with Fn-§ for original character and put backtick where it should be", "description": "Change § key to escape with Fn-§ for original character and put backtick where it should be",
"manipulators": [ "manipulators": [
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "non_us_backslash", "key_code": "non_us_backslash",
"modifiers": { "modifiers": {
@ -227,6 +541,16 @@
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "non_us_backslash", "key_code": "non_us_backslash",
"modifiers": { "modifiers": {
@ -247,6 +571,16 @@
"type": "basic" "type": "basic"
}, },
{ {
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": { "from": {
"key_code": "grave_accent_and_tilde", "key_code": "grave_accent_and_tilde",
"modifiers": { "modifiers": {
@ -267,6 +601,34 @@
"type": "basic" "type": "basic"
} }
] ]
},
{
"description": "Quit application by holding command-q",
"manipulators": [
{
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to_if_held_down": [
{
"key_code": "q",
"modifiers": [
"left_command"
],
"repeat": false
}
],
"type": "basic"
}
]
} }
] ]
}, },
@ -302,9 +664,26 @@
"product_id": 24672, "product_id": 24672,
"vendor_id": 65261 "vendor_id": 65261
}, },
"ignore": true, "ignore": false,
"manipulate_caps_lock_led": false, "manipulate_caps_lock_led": false,
"simple_modifications": [] "simple_modifications": [
{
"from": {
"key_code": "non_us_backslash"
},
"to": {
"key_code": "grave_accent_and_tilde"
}
},
{
"from": {
"key_code": "grave_accent_and_tilde"
},
"to": {
"key_code": "non_us_backslash"
}
}
]
}, },
{ {
"disable_built_in_keyboard_if_exists": false, "disable_built_in_keyboard_if_exists": false,
@ -318,6 +697,32 @@
"ignore": true, "ignore": true,
"manipulate_caps_lock_led": true, "manipulate_caps_lock_led": true,
"simple_modifications": [] "simple_modifications": []
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 615,
"vendor_id": 1452
},
"ignore": true,
"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": 55,
"vendor_id": 5426
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": []
} }
], ],
"fn_function_keys": [ "fn_function_keys": [
@ -326,7 +731,7 @@
"key_code": "f1" "key_code": "f1"
}, },
"to": { "to": {
"consumer_key_code": "display_brightness_decrement" "key_code": "f1"
} }
}, },
{ {
@ -334,7 +739,7 @@
"key_code": "f2" "key_code": "f2"
}, },
"to": { "to": {
"consumer_key_code": "display_brightness_increment" "key_code": "f2"
} }
}, },
{ {
@ -342,7 +747,7 @@
"key_code": "f3" "key_code": "f3"
}, },
"to": { "to": {
"key_code": "mission_control" "key_code": "f3"
} }
}, },
{ {
@ -350,7 +755,7 @@
"key_code": "f4" "key_code": "f4"
}, },
"to": { "to": {
"key_code": "launchpad" "key_code": "f4"
} }
}, },
{ {
@ -358,7 +763,7 @@
"key_code": "f5" "key_code": "f5"
}, },
"to": { "to": {
"key_code": "illumination_decrement" "key_code": "f5"
} }
}, },
{ {
@ -366,7 +771,7 @@
"key_code": "f6" "key_code": "f6"
}, },
"to": { "to": {
"key_code": "illumination_increment" "key_code": "f6"
} }
}, },
{ {
@ -374,7 +779,7 @@
"key_code": "f7" "key_code": "f7"
}, },
"to": { "to": {
"consumer_key_code": "rewind" "key_code": "f7"
} }
}, },
{ {
@ -382,7 +787,7 @@
"key_code": "f8" "key_code": "f8"
}, },
"to": { "to": {
"consumer_key_code": "play_or_pause" "key_code": "f8"
} }
}, },
{ {
@ -390,7 +795,7 @@
"key_code": "f9" "key_code": "f9"
}, },
"to": { "to": {
"consumer_key_code": "fastforward" "key_code": "f9"
} }
}, },
{ {
@ -398,7 +803,7 @@
"key_code": "f10" "key_code": "f10"
}, },
"to": { "to": {
"consumer_key_code": "mute" "key_code": "f10"
} }
}, },
{ {
@ -406,7 +811,7 @@
"key_code": "f11" "key_code": "f11"
}, },
"to": { "to": {
"consumer_key_code": "volume_decrement" "key_code": "f11"
} }
}, },
{ {
@ -414,7 +819,7 @@
"key_code": "f12" "key_code": "f12"
}, },
"to": { "to": {
"consumer_key_code": "volume_increment" "key_code": "f12"
} }
} }
], ],