Skip to content

Instantly share code, notes, and snippets.

@brandonkboswell
Created February 20, 2022 17:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonkboswell/407dacd66e64568d4f36373be39cbd10 to your computer and use it in GitHub Desktop.
Save brandonkboswell/407dacd66e64568d4f36373be39cbd10 to your computer and use it in GitHub Desktop.
Brandon Boswell's Karabiner Elements Config
{
"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": 500,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
{
"description": "CAPS_LOCK to HYPER (SHIFT+COMMAND+OPTION+CONTROL) or ESCAPE (If Alone)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {}
},
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
},
{
"description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+,",
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": [
"command",
"shift",
"option",
"control"
]
}
},
"to": [],
"type": "basic"
},
{
"description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+.",
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"command",
"shift",
"option",
"control"
]
}
},
"to": [],
"type": "basic"
},
{
"from": {
"description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+/",
"key_code": "slash",
"modifiers": {
"mandatory": [
"command",
"shift",
"option",
"control"
]
}
},
"to": [],
"type": "basic"
}
]
},
{
"description": "Hyper + i/j/k/l == vim directional Keys",
"manipulators": [
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Tilde",
"manipulators": [
{
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "o Launcher",
"manipulators": [
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "m"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'spotify.app'"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "i"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'Messages.app'"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "f"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open ~/Downloads"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "g"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'Google Chrome.app'"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "c"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'Fantastical 2.app'"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "t"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'TickTick.app'"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "z"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'zoom.us.app'"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "d"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'Obsidian.app'"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "e"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'Sublime Text.app'"
}
],
"type": "basic"
},
{
"from": {
"modifiers": {
"mandatory": []
},
"simultaneous": [
{
"key_code": "open_bracket"
},
{
"key_code": "s"
}
],
"simultaneous_options": {
"key_down_order": "strict",
"key_up_order": "strict_inverse",
"to_after_key_up": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 0
}
}
]
}
},
"parameters": {
"basic.simultaneous_threshold_milliseconds": 500
},
"to": [
{
"set_variable": {
"name": "launcher_mode_v4",
"value": 1
}
},
{
"shell_command": "open -a 'Slack.app'"
}
],
"type": "basic"
}
]
},
{
"description": "CAPS_LOCK to HYPER (SHIFT+COMMAND+OPTION+CONTROL) or ESCAPE (If Alone)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {}
},
"to": [
{
"set_variable": {
"name": "hyper_arrow",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "hyper_arrow",
"value": 0
}
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
},
{
"description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+,",
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": [
"command",
"shift",
"option",
"control"
]
}
},
"to": [],
"type": "basic"
},
{
"description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+.",
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"command",
"shift",
"option",
"control"
]
}
},
"to": [],
"type": "basic"
},
{
"from": {
"description": "Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+/",
"key_code": "slash",
"modifiers": {
"mandatory": [
"command",
"shift",
"option",
"control"
]
}
},
"to": [],
"type": "basic"
}
]
},
{
"description": "Hyper + SPACE : Toggle Alfred",
"manipulators": [
{
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "spacebar",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 49977,
"vendor_id": 1133
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": []
},
{
"disable_built_in_keyboard_if_exists": true,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 41618,
"vendor_id": 1241
},
"ignore": false,
"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"
}
]
}
]
},
{
"disable_built_in_keyboard_if_exists": true,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 0,
"vendor_id": 13
},
"ignore": false,
"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"
}
]
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 635,
"vendor_id": 1452
},
"ignore": false,
"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": 130,
"vendor_id": 12136
},
"ignore": false,
"manipulate_caps_lock_led": false,
"simple_modifications": [
{
"from": {
"key_code": "application"
},
"to": [
{
"key_code": "right_option"
}
]
},
{
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_option"
}
]
},
{
"from": {
"key_code": "left_option"
},
"to": [
{
"key_code": "left_command"
}
]
},
{
"from": {
"key_code": "right_option"
},
"to": [
{
"key_code": "right_command"
}
]
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 61139,
"vendor_id": 1240
},
"ignore": false,
"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"
}
]
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 636,
"vendor_id": 1452
},
"ignore": false,
"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": 145,
"vendor_id": 5426
},
"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": false,
"manipulate_caps_lock_led": true,
"simple_modifications": []
}
],
"fn_function_keys": [
{
"from": {
"key_code": "f1"
},
"to": [
{
"consumer_key_code": "display_brightness_decrement"
}
]
},
{
"from": {
"key_code": "f2"
},
"to": [
{
"consumer_key_code": "display_brightness_increment"
}
]
},
{
"from": {
"key_code": "f3"
},
"to": [
{
"key_code": "mission_control"
}
]
},
{
"from": {
"key_code": "f4"
},
"to": [
{
"key_code": "launchpad"
}
]
},
{
"from": {
"key_code": "f5"
},
"to": [
{
"key_code": "illumination_decrement"
}
]
},
{
"from": {
"key_code": "f6"
},
"to": [
{
"key_code": "illumination_increment"
}
]
},
{
"from": {
"key_code": "f7"
},
"to": [
{
"consumer_key_code": "rewind"
}
]
},
{
"from": {
"key_code": "f8"
},
"to": [
{
"consumer_key_code": "play_or_pause"
}
]
},
{
"from": {
"key_code": "f9"
},
"to": [
{
"consumer_key_code": "fastforward"
}
]
},
{
"from": {
"key_code": "f10"
},
"to": [
{
"consumer_key_code": "mute"
}
]
},
{
"from": {
"key_code": "f11"
},
"to": [
{
"consumer_key_code": "volume_decrement"
}
]
},
{
"from": {
"key_code": "f12"
},
"to": [
{
"consumer_key_code": "volume_increment"
}
]
}
],
"name": "Default profile",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [],
"virtual_hid_keyboard": {
"country_code": 0,
"indicate_soty_modifier_keys_state": true,
"indicate_sticky_modifier_keys_state": true,
"mouse_key_xy_scale": 100
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment