Last active
May 2, 2024 18:55
-
-
Save ikibalnyi/21fea0214d0574f5dad0f5bd41c3902a to your computer and use it in GitHub Desktop.
Karabiner config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"ask_for_confirmation_before_quitting": true, | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false, | |
"unsafe_ui": 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": 150, | |
"mouse_motion_to_scroll.speed": 100 | |
}, | |
"rules": [] | |
}, | |
"devices": [], | |
"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": false, | |
"simple_modifications": [], | |
"virtual_hid_keyboard": { | |
"country_code": 0, | |
"indicate_sticky_modifier_keys_state": true, | |
"mouse_key_xy_scale": 100 | |
} | |
}, | |
{ | |
"complex_modifications": { | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 50, | |
"basic.to_delayed_action_delay_milliseconds": 500, | |
"basic.to_if_alone_timeout_milliseconds": 300, | |
"basic.to_if_held_down_threshold_milliseconds": 100, | |
"mouse_motion_to_scroll.speed": 100 | |
}, | |
"rules": [ | |
{ | |
"description": "Caps to ctrl/esc", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "HHKB: Ctrl to esc", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "SpaceFN simultanuous: Space+[hjkl] to Left, Down, Up, Right", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "h" | |
} | |
], | |
"simultaneous_options": { | |
"detect_key_down_uninterruptedly": true, | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "spacefn_mode", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 300 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "spacefn_mode", | |
"value": 1 | |
} | |
}, | |
{ | |
"set_variable": { | |
"name": "DEBUG simultaneous", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "j" | |
} | |
], | |
"simultaneous_options": { | |
"detect_key_down_uninterruptedly": true, | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "spacefn_mode", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 300 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "spacefn_mode", | |
"value": 1 | |
} | |
}, | |
{ | |
"set_variable": { | |
"name": "DEBUG simultaneous", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "k" | |
} | |
], | |
"simultaneous_options": { | |
"detect_key_down_uninterruptedly": true, | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "spacefn_mode", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 300 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "spacefn_mode", | |
"value": 1 | |
} | |
}, | |
{ | |
"set_variable": { | |
"name": "DEBUG simultaneous", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "l" | |
} | |
], | |
"simultaneous_options": { | |
"detect_key_down_uninterruptedly": true, | |
"key_down_order": "strict", | |
"key_up_order": "strict_inverse", | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "spacefn_mode", | |
"value": 0 | |
} | |
} | |
] | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 300 | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "spacefn_mode", | |
"value": 1 | |
} | |
}, | |
{ | |
"set_variable": { | |
"name": "DEBUG simultaneous", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "SpaceFN: Space+[hjkl] to Left, Down, Up, Right", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "SpaceFn: Space+b to Word Left, Space+w to Word Right", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "b", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "w", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "SpaceFN: Space+u to Line start, Space+i to Line End", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "u", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "spacefn_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "i", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"game_pad_swap_sticks": false, | |
"identifiers": { | |
"is_game_pad": false, | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 32, | |
"vendor_id": 1278 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"mouse_flip_horizontal_wheel": false, | |
"mouse_flip_vertical_wheel": false, | |
"mouse_flip_x": false, | |
"mouse_flip_y": false, | |
"mouse_swap_wheels": false, | |
"mouse_swap_xy": false, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "escape" | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_option" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command" | |
} | |
] | |
} | |
], | |
"treat_as_built_in_keyboard": false | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"game_pad_swap_sticks": false, | |
"identifiers": { | |
"is_game_pad": false, | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 25903, | |
"vendor_id": 3141 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"mouse_flip_horizontal_wheel": false, | |
"mouse_flip_vertical_wheel": false, | |
"mouse_flip_x": false, | |
"mouse_flip_y": false, | |
"mouse_swap_wheels": false, | |
"mouse_swap_xy": false, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_option" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command" | |
} | |
] | |
} | |
], | |
"treat_as_built_in_keyboard": false | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"game_pad_swap_sticks": false, | |
"identifiers": { | |
"is_game_pad": false, | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 636, | |
"vendor_id": 1452 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": true, | |
"mouse_flip_horizontal_wheel": false, | |
"mouse_flip_vertical_wheel": false, | |
"mouse_flip_x": false, | |
"mouse_flip_y": false, | |
"mouse_swap_wheels": false, | |
"mouse_swap_xy": false, | |
"simple_modifications": [], | |
"treat_as_built_in_keyboard": false | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"game_pad_swap_sticks": false, | |
"identifiers": { | |
"is_game_pad": false, | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 34304, | |
"vendor_id": 1452 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": true, | |
"mouse_flip_horizontal_wheel": false, | |
"mouse_flip_vertical_wheel": false, | |
"mouse_flip_x": false, | |
"mouse_flip_y": false, | |
"mouse_swap_wheels": false, | |
"mouse_swap_xy": false, | |
"simple_modifications": [], | |
"treat_as_built_in_keyboard": false | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"game_pad_swap_sticks": false, | |
"identifiers": { | |
"is_game_pad": false, | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 835, | |
"vendor_id": 1452 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": true, | |
"mouse_flip_horizontal_wheel": false, | |
"mouse_flip_vertical_wheel": false, | |
"mouse_flip_x": false, | |
"mouse_flip_y": false, | |
"mouse_swap_wheels": false, | |
"mouse_swap_xy": false, | |
"simple_modifications": [], | |
"treat_as_built_in_keyboard": false | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"game_pad_swap_sticks": false, | |
"identifiers": { | |
"is_game_pad": false, | |
"is_keyboard": false, | |
"is_pointing_device": true, | |
"product_id": 835, | |
"vendor_id": 1452 | |
}, | |
"ignore": true, | |
"manipulate_caps_lock_led": false, | |
"mouse_flip_horizontal_wheel": false, | |
"mouse_flip_vertical_wheel": false, | |
"mouse_flip_x": false, | |
"mouse_flip_y": false, | |
"mouse_swap_wheels": false, | |
"mouse_swap_xy": false, | |
"simple_modifications": [], | |
"treat_as_built_in_keyboard": false | |
} | |
], | |
"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": "Custom Profile", | |
"parameters": { | |
"delay_milliseconds_before_open_device": 1000 | |
}, | |
"selected": true, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "escape" | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
] | |
} | |
], | |
"virtual_hid_keyboard": { | |
"country_code": 0, | |
"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