dotfiles/.config/karabiner/karabiner.json (57100B)
{ "global": { "show_in_menu_bar": false }, "profiles": [ { "complex_modifications": { "rules": [ { "description": "command-f1 and f2 to adjust keyboard brightness", "manipulators": [ { "from": { "key_code": "f1", "modifiers": { "mandatory": ["left_command"], "optional": ["caps_lock"] } }, "to": [{ "key_code": "illumination_decrement" }], "type": "basic" }, { "from": { "key_code": "f2", "modifiers": { "mandatory": ["left_command"], "optional": ["caps_lock"] } }, "to": [{ "key_code": "illumination_increment" }], "type": "basic" } ] }, { "description": "Tap Caps Lock for ESC or Hold for Control", "manipulators": [ { "from": { "key_code": "caps_lock", "modifiers": { "optional": ["any"] } }, "to": [ { "key_code": "left_control", "lazy": true } ], "to_if_alone": [{ "key_code": "escape" }], "type": "basic" } ] }, { "description": "Symbol Layer", "manipulators": [ { "conditions": [ { "name": "layer", "type": "variable_if", "value": 0 } ], "from": { "key_code": "grave_accent_and_tilde", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [ { "set_variable": { "name": "layer", "value": 1 } } ], "to_after_key_up": [ { "set_variable": { "name": "layer", "value": 0 } } ], "to_if_alone": [{ "key_code": "grave_accent_and_tilde" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 0 } ], "from": { "key_code": "non_us_backslash", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "grave_accent_and_tilde" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "a" }, "to": [ { "key_code": "1", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "b" }, "to": [ { "key_code": "2", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "c", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "close_bracket" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "comma", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "period" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "d", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "slash" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "e" }, "to": [ { "key_code": "period", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "f", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "equal_sign" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "g", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "backslash" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "h" }, "to": [ { "key_code": "3", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "i" }, "to": [ { "key_code": "close_bracket", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "j" }, "to": [ { "key_code": "9", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "k" }, "to": [ { "key_code": "0", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "l", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "delete_or_backspace" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "m", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "comma" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "spacebar", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "return_or_enter" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "o" }, "to": [ { "key_code": "4", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "p" }, "to": [ { "key_code": "7", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "r", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "hyphen" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "s" }, "to": [ { "key_code": "8", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "t" }, "to": [ { "key_code": "hyphen", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "u" }, "to": [ { "key_code": "open_bracket", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "v" }, "to": [ { "key_code": "5", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "w" }, "to": [ { "key_code": "comma", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "x", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "open_bracket" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "y" }, "to": [ { "key_code": "6", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "z" }, "to": [ { "key_code": "equal_sign", "modifiers": ["shift"] } ], "type": "basic" } ] } ] }, "devices": [ { "identifiers": { "is_keyboard": true, "product_id": 20484, "vendor_id": 3141 }, "simple_modifications": [ { "from": { "key_code": "f1" }, "to": [{ "consumer_key_code": "al_consumer_control_configuration" }] }, { "from": { "key_code": "f2" }, "to": [{ "consumer_key_code": "volume_decrement" }] }, { "from": { "key_code": "f3" }, "to": [{ "consumer_key_code": "volume_increment" }] }, { "from": { "key_code": "f4" }, "to": [{ "consumer_key_code": "mute" }] }, { "from": { "key_code": "f5" }, "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] }, { "from": { "key_code": "f6" }, "to": [{ "consumer_key_code": "rewind" }] }, { "from": { "key_code": "f7" }, "to": [{ "consumer_key_code": "play_or_pause" }] }, { "from": { "key_code": "f8" }, "to": [{ "consumer_key_code": "fast_forward" }] }, { "from": { "key_code": "f9" }, "to": [{ "consumer_key_code": "al_email_reader" }] }, { "from": { "key_code": "f10" }, "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] }, { "from": { "key_code": "f11" }, "to": [{ "consumer_key_code": "al_calculator" }] }, { "from": { "key_code": "f12" }, "to": [{ "apple_vendor_keyboard_key_code": "spotlight" }] }, { "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" }] } ], "identifiers": { "is_keyboard": true, "product_id": 38405, "vendor_id": 6700 }, "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": "f5" }, "to": [{ "key_code": "f5" }] }, { "from": { "key_code": "f6" }, "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] } ], "name": "Default profile", "selected": true, "virtual_hid_keyboard": { "keyboard_type_v2": "ansi" } }, { "complex_modifications": { "rules": [ { "description": "command-f1 and f2 to adjust keyboard brightness", "manipulators": [ { "from": { "key_code": "f1", "modifiers": { "mandatory": ["left_command"], "optional": ["caps_lock"] } }, "to": [{ "key_code": "illumination_decrement" }], "type": "basic" }, { "from": { "key_code": "f2", "modifiers": { "mandatory": ["left_command"], "optional": ["caps_lock"] } }, "to": [{ "key_code": "illumination_increment" }], "type": "basic" } ] }, { "description": "Symbol Layer", "manipulators": [ { "conditions": [ { "name": "layer", "type": "variable_if", "value": 0 } ], "from": { "key_code": "grave_accent_and_tilde", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [ { "set_variable": { "name": "layer", "value": 1 } } ], "to_after_key_up": [ { "set_variable": { "name": "layer", "value": 0 } } ], "to_if_alone": [{ "key_code": "grave_accent_and_tilde" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 0 } ], "from": { "key_code": "non_us_backslash", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "grave_accent_and_tilde" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "a" }, "to": [ { "key_code": "1", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "b" }, "to": [ { "key_code": "2", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "c", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "close_bracket" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "comma", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "period" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "d", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "slash" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "e" }, "to": [ { "key_code": "period", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "f", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "equal_sign" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "g", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "backslash" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "h" }, "to": [ { "key_code": "3", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "i" }, "to": [ { "key_code": "close_bracket", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "j" }, "to": [ { "key_code": "9", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "k" }, "to": [ { "key_code": "0", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "l", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "delete_or_backspace" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "m", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "comma" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "spacebar", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "return_or_enter" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "o" }, "to": [ { "key_code": "4", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "p" }, "to": [ { "key_code": "7", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "r", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "hyphen" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "s" }, "to": [ { "key_code": "8", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "t" }, "to": [ { "key_code": "hyphen", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "u" }, "to": [ { "key_code": "open_bracket", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "v" }, "to": [ { "key_code": "5", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "w" }, "to": [ { "key_code": "comma", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "x", "modifiers": { "optional": ["shift", "command", "control", "option", "fn"] } }, "to": [{ "key_code": "open_bracket" }], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "y" }, "to": [ { "key_code": "6", "modifiers": ["shift"] } ], "type": "basic" }, { "conditions": [ { "name": "layer", "type": "variable_if", "value": 1 } ], "from": { "key_code": "z" }, "to": [ { "key_code": "equal_sign", "modifiers": ["shift"] } ], "type": "basic" } ] } ] }, "devices": [ { "identifiers": { "is_keyboard": true, "product_id": 20484, "vendor_id": 3141 }, "simple_modifications": [ { "from": { "key_code": "f1" }, "to": [{ "consumer_key_code": "al_consumer_control_configuration" }] }, { "from": { "key_code": "f2" }, "to": [{ "consumer_key_code": "volume_decrement" }] }, { "from": { "key_code": "f3" }, "to": [{ "consumer_key_code": "volume_increment" }] }, { "from": { "key_code": "f4" }, "to": [{ "consumer_key_code": "mute" }] }, { "from": { "key_code": "f5" }, "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] }, { "from": { "key_code": "f6" }, "to": [{ "consumer_key_code": "rewind" }] }, { "from": { "key_code": "f7" }, "to": [{ "consumer_key_code": "play_or_pause" }] }, { "from": { "key_code": "f8" }, "to": [{ "consumer_key_code": "fast_forward" }] }, { "from": { "key_code": "f9" }, "to": [{ "consumer_key_code": "al_email_reader" }] }, { "from": { "key_code": "f10" }, "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] }, { "from": { "key_code": "f11" }, "to": [{ "consumer_key_code": "al_calculator" }] }, { "from": { "key_code": "f12" }, "to": [{ "apple_vendor_keyboard_key_code": "spotlight" }] }, { "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": "f5" }, "to": [{ "key_code": "f5" }] }, { "from": { "key_code": "f6" }, "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] } ], "name": "Minecraft", "virtual_hid_keyboard": { "keyboard_type_v2": "ansi" } } ] }