dotfiles/dot_config/private_karabiner/private_karabiner.json
2024-10-06 17:35:13 -05:00

408 lines
17 KiB
JSON

{
"global": { "show_in_menu_bar": false },
"profiles": [
{
"complex_modifications": {
"parameters": { "basic.to_if_held_down_threshold_milliseconds": 250 },
"rules": [
{
"description": "Fn + numbers to media keys",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "display_brightness_decrement" }],
"type": "basic"
},
{
"from": {
"key_code": "2",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "display_brightness_increment" }],
"type": "basic"
},
{
"from": {
"key_code": "3",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "mission_control" }],
"type": "basic"
},
{
"from": {
"key_code": "4",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "launchpad" }],
"type": "basic"
},
{
"from": {
"key_code": "5",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "illumination_decrement" }],
"type": "basic"
},
{
"from": {
"key_code": "6",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "illumination_increment" }],
"type": "basic"
},
{
"from": {
"key_code": "7",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "rewind" }],
"type": "basic"
},
{
"from": {
"key_code": "8",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "play_or_pause" }],
"type": "basic"
},
{
"from": {
"key_code": "9",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "fastforward" }],
"type": "basic"
},
{
"from": {
"key_code": "0",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "mute" }],
"type": "basic"
},
{
"from": {
"key_code": "hyphen",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "volume_decrement" }],
"type": "basic"
},
{
"from": {
"key_code": "equal_sign",
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "key_code": "volume_increment" }],
"type": "basic"
}
]
},
{
"description": "Change right option into hyper key",
"manipulators": [
{
"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": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["fn"],
"optional": ["caps_lock", "shift", "command", "option", "control"]
}
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["fn"],
"optional": ["caps_lock", "shift", "command", "option", "control"]
}
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["fn"],
"optional": ["caps_lock", "shift", "command", "option", "control"]
}
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"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": [
{
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"mandatory": ["fn"],
"optional": ["caps_lock", "shift", "command", "option", "control"]
}
},
"to": [{ "key_code": "non_us_backslash" }],
"type": "basic"
},
{
"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": [
{
"identifiers": {
"is_keyboard": true,
"product_id": 632,
"vendor_id": 1452
},
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 24672,
"vendor_id": 65261
},
"manipulate_caps_lock_led": false
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 34304,
"vendor_id": 1452
},
"ignore": true
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 615,
"vendor_id": 1452
},
"ignore": true
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 55,
"vendor_id": 5426
},
"ignore": true,
"manipulate_caps_lock_led": false
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 591,
"vendor_id": 1452
},
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 598,
"vendor_id": 1452
},
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 615,
"vendor_id": 76
},
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"is_pointing_device": true,
"product_id": 45081,
"vendor_id": 1133
},
"manipulate_caps_lock_led": false
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 8800,
"vendor_id": 65261
},
"manipulate_caps_lock_led": false
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 24585,
"vendor_id": 6127
},
"manipulate_caps_lock_led": false,
"simple_modifications": [
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
}
]
}
],
"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": "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": 1,
"keyboard_type": "iso",
"keyboard_type_v2": "ansi"
}
}
]
}