1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00
dotfiles-local/config/karabiner/karabiner.json
2019-04-23 09:58:12 -04:00

877 lines
36 KiB
JSON

{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"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": 250
},
"rules": [
{
"description": "Fn + numbers to media keys",
"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": {
"key_code": "7",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "rewind"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "play_or_pause"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "fastforward"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "mute"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "hyphen",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "volume_decrement"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "equal_sign",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "volume_increment"
}
],
"type": "basic"
}
]
},
{
"description": "Change right option into hyper key",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_shift",
"modifiers": [
"right_command",
"right_control",
"right_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Fn + h/j/k/l to Arrows",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"shift",
"command",
"option",
"control"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"shift",
"command",
"option",
"control"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"shift",
"command",
"option",
"control"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"shift",
"command",
"option",
"control"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Change § key to escape with Fn-§ for original character",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"shift",
"command",
"option",
"control"
]
}
},
"to": [
{
"key_code": "non_us_backslash"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 1452
}
],
"type": "device_if"
}
],
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"optional": [
"caps_lock",
"shift",
"command",
"option",
"control"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"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"
}
]
}
]
},
"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": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 24672,
"vendor_id": 65261
},
"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": 34304,
"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": 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": []
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 591,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 598,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 615,
"vendor_id": 76
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": true,
"product_id": 45081,
"vendor_id": 1133
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": []
}
],
"fn_function_keys": [
{
"from": {
"key_code": "f1"
},
"to": {
"key_code": "f1"
}
},
{
"from": {
"key_code": "f2"
},
"to": {
"key_code": "f2"
}
},
{
"from": {
"key_code": "f3"
},
"to": {
"key_code": "f3"
}
},
{
"from": {
"key_code": "f4"
},
"to": {
"key_code": "f4"
}
},
{
"from": {
"key_code": "f5"
},
"to": {
"key_code": "f5"
}
},
{
"from": {
"key_code": "f6"
},
"to": {
"key_code": "f6"
}
},
{
"from": {
"key_code": "f7"
},
"to": {
"key_code": "f7"
}
},
{
"from": {
"key_code": "f8"
},
"to": {
"key_code": "f8"
}
},
{
"from": {
"key_code": "f9"
},
"to": {
"key_code": "f9"
}
},
{
"from": {
"key_code": "f10"
},
"to": {
"key_code": "f10"
}
},
{
"from": {
"key_code": "f11"
},
"to": {
"key_code": "f11"
}
},
{
"from": {
"key_code": "f12"
},
"to": {
"key_code": "f12"
}
}
],
"name": "Default profile",
"selected": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
}
],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"country_code": 0,
"keyboard_type": "iso"
}
}
]
}