Add Karabiner config

This commit is contained in:
Daniel Barber 2024-10-06 17:34:47 -05:00
parent b01398f0b7
commit 7e5a0344a5
7 changed files with 2410 additions and 0 deletions

View File

@ -0,0 +1,248 @@
{
"title": "Vi Style Arrows",
"rules": [
{
"description": "Change Control + h/j/k/l to Arrows",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "Change Option + h/j/k/l to Arrows",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "Change Fn + h/j/k/l to Arrows",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
}
]
}

View File

@ -0,0 +1,69 @@
{
"title": "Change grave accent (backtick) to escape, option grave accent to grave accent",
"rules": [
{
"description": "Post Escape if grave_accent_and_tilde (backtick) is pressed alone; post grave_accent (backtick) if Option + grave_accent_and_tilde is pressed.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"optional": [
"left_command"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"left_command"
]
}
],
"to_if_alone": [
{
"key_code": "escape"
}
]
},
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"optional": [
"left_control"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"left_control"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"optional": [
"left_option"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
]
}
]
}
]
}

View File

@ -0,0 +1,507 @@
{
"title": "Map fn + number keys to function keys (rev 2)",
"rules": [
{
"description": "Map fn + number keys to their corresponding function keys (rev 1)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f1",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f2",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f3",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f4",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f5",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f6",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "7",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f7",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f8",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f9",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f10",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "hyphen",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f11",
"modifiers": [
"fn"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "equal_sign",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f12",
"modifiers": [
"fn"
]
}
]
}
]
},
{
"description": "Map fn + number keys to their corresponding media control keys (rev 2)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f1"
}
]
},
{
"type": "basic",
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f2"
}
]
},
{
"type": "basic",
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f3"
}
]
},
{
"type": "basic",
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f4"
}
]
},
{
"type": "basic",
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f5"
}
]
},
{
"type": "basic",
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f6"
}
]
},
{
"type": "basic",
"from": {
"key_code": "7",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f7"
}
]
},
{
"type": "basic",
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f8"
}
]
},
{
"type": "basic",
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f9"
}
]
},
{
"type": "basic",
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f10"
}
]
},
{
"type": "basic",
"from": {
"key_code": "hyphen",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f11"
}
]
},
{
"type": "basic",
"from": {
"key_code": "equal_sign",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f12"
}
]
}
]
}
]
}

View File

@ -0,0 +1,191 @@
{
"title": "Prevent unintended command-q (rev 2)",
"rules": [
{
"description": "Quit application by pressing command-q twice",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "variable_if",
"name": "command-q",
"value": 1
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "q",
"modifiers": "left_command"
}
]
},
{
"type": "basic",
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"set_variable": {
"name": "command-q",
"value": 1
}
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
]
}
}
]
},
{
"description": "Quit application by holding command-q",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to_if_held_down": [
{
"key_code": "q",
"modifiers": [
"left_command"
],
"repeat": false
}
]
}
]
},
{
"description": "Quit Safari by pressing command-q twice",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "variable_if",
"name": "command-q",
"value": 1
},
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Safari$"
]
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "q",
"modifiers": "left_command"
}
]
},
{
"type": "basic",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Safari$"
]
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"set_variable": {
"name": "command-q",
"value": 1
}
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
]
}
}
]
}
]
}

View File

@ -0,0 +1,68 @@
{
"title": "device_if,device_unless example",
"rules": [
{
"description": "Open Karabiner-Elements by f5 in non-Apple keyboards",
"manipulators": [
{
"conditions": [
{
"type": "device_unless",
"identifiers": [
{
"vendor_id": 1452
}
]
}
],
"type": "basic",
"from": {
"key_code": "f5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a 'Karabiner-Elements.app'"
}
]
}
]
},
{
"description": "Open Karabiner-EventViewer by f6 in HHKB BT JP keyboards",
"manipulators": [
{
"conditions": [
{
"type": "device_if",
"identifiers": [
{
"vendor_id": 1278,
"product_id": 515
}
]
}
],
"type": "basic",
"from": {
"key_code": "f6",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a 'Karabiner-EventViewer.app'"
}
]
}
]
}
]
}

View File

@ -0,0 +1,919 @@
{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"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": 250,
"mouse_motion_to_scroll.speed": 100
},
"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": [
{
"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": 632,
"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": [
{
"from": {
"key_code": "caps_lock"
},
"to": [
{
"key_code": "left_control"
}
]
}
],
"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": 24672,
"vendor_id": 65261
},
"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": [],
"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": true,
"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": 615,
"vendor_id": 1452
},
"ignore": true,
"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": 55,
"vendor_id": 5426
},
"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
},
{
"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": 591,
"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": [
{
"from": {
"key_code": "caps_lock"
},
"to": [
{
"key_code": "left_control"
}
]
}
],
"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": 598,
"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": [
{
"from": {
"key_code": "caps_lock"
},
"to": [
{
"key_code": "left_control"
}
]
}
],
"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": 615,
"vendor_id": 76
},
"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": [
{
"from": {
"key_code": "caps_lock"
},
"to": [
{
"key_code": "left_control"
}
]
}
],
"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": true,
"product_id": 45081,
"vendor_id": 1133
},
"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
},
{
"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": 8800,
"vendor_id": 65261
},
"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": [],
"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": 24585,
"vendor_id": 6127
},
"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": 0,
"vendor_id": 0
},
"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": 0,
"vendor_id": 0
},
"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": [
{
"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",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"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,
"indicate_sticky_modifier_keys_state": true,
"keyboard_type": "iso",
"mouse_key_xy_scale": 100
}
}
]
}

View File

@ -0,0 +1,408 @@
{
"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"
}
}
]
}