Skip to content

Instantly share code, notes, and snippets.

@strlns
Created April 17, 2023 15:17
Show Gist options
  • Save strlns/b6e15abd6e09f2a0a04c0a8e5967f196 to your computer and use it in GitHub Desktop.
Save strlns/b6e15abd6e09f2a0a04c0a8e5967f196 to your computer and use it in GitHub Desktop.
Karabiner Elements with config for MS Sculpt keyboard + Default profile for laptop use
{
"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": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": []
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 834,
"vendor_id": 1452
},
"ignore": true,
"manipulate_caps_lock_led": true,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": false,
"is_pointing_device": true,
"product_id": 834,
"vendor_id": 1452
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 1957,
"vendor_id": 1118
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": false,
"is_pointing_device": true,
"product_id": 1957,
"vendor_id": 1118
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 1970,
"vendor_id": 1118
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": false,
"is_pointing_device": true,
"product_id": 1970,
"vendor_id": 1118
},
"ignore": true,
"manipulate_caps_lock_led": 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": [
{
"apple_vendor_keyboard_key_code": "mission_control"
}
]
},
{
"from": {
"key_code": "f4"
},
"to": [
{
"apple_vendor_keyboard_key_code": "spotlight"
}
]
},
{
"from": {
"key_code": "f5"
},
"to": [
{
"consumer_key_code": "dictation"
}
]
},
{
"from": {
"key_code": "f6"
},
"to": [
{
"key_code": "f6"
}
]
},
{
"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": "fast_forward"
}
]
},
{
"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": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
{
"description": "Map 'Windows' mouse button to launching 'Launchpad.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "right_gui",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a 'Launchpad.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Swap 'right Alt ⎇' key and 'Menu/Application' key",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "application",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_option"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Home' key to '⌘ + Left arrow'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "home"
},
"to": [
{
"key_code": "left_arrow",
"modifiers": "command"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'End' key to '⌘ + Right arrow'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "end"
},
"to": [
{
"key_code": "right_arrow",
"modifiers": "command"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Desktop Left' key (F3 key) to 'Move left a space' action",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": [
"left_option",
"left_control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Desktop Right' key (F4 key) to 'Move right a space' action",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "right_arrow",
"modifiers": {
"mandatory": [
"left_option",
"left_control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Cortana/Search' key (F5 key) to launching 'Spotlight'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "f21",
"modifiers": {
"mandatory": [
"left_option",
"left_shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"apple_vendor_keyboard_key_code": "spotlight"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Share' key (F6 key) to launching 'AirDrop.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "f21",
"modifiers": {
"mandatory": [
"left_option",
"left_command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "open -a 'AirDrop.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Connect' key (F7 key) to launching 'Screen Sharing.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "f21",
"modifiers": {
"mandatory": [
"left_option",
"left_control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "open -a 'Screen Sharing.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Windows Settings' key (F8 key) to launching 'System Preferences.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "f21",
"modifiers": {
"mandatory": [
"left_option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "open -a 'System Preferences.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Back' mouse button to 'Mission Control.app' action",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"modifiers": {
"optional": [
"any"
]
},
"pointing_button": "button4"
},
"to": [
{
"apple_vendor_keyboard_key_code": "mission_control"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Windows' mouse button to launching 'Launchpad.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "right_gui",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a 'Launchpad.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Toggle 'Numlock' on Numpad",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_if",
"value": 0
}
],
"description": "Enable 'Numlock'",
"from": {
"key_code": "keypad_num_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "Numlock",
"value": 1
}
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 0
}
],
"description": "Disable 'Numlock'",
"from": {
"key_code": "keypad_num_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "Numlock",
"value": 0
}
}
],
"type": "basic"
}
]
},
{
"description": "If 'Numlock' enabled map Numpad keys as arrows (7 = Home,1 = End,9 = Page Up,3 = Page Down,8 = Up arrow,2 = Down arrow,4 = Left arrow,6 = Right arrow) and as copy/cut/paste (Shift+. = ⌘+x,Shift+0 = ⌘+v,Ctrl+0 = ⌘+c)",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'End' with 'keypad 1'",
"from": {
"key_code": "keypad_1",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "end"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Down arrow' with 'keypad 2'",
"from": {
"key_code": "keypad_2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Page down' with 'keypad 3'",
"from": {
"key_code": "keypad_3",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Left arrow' with 'keypad 4'",
"from": {
"key_code": "keypad_4",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Disable 'keypad 5'",
"from": {
"key_code": "keypad_5"
},
"to": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Right arrow' with 'keypad 6'",
"from": {
"key_code": "keypad_6",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Home' with 'keypad 7'",
"from": {
"key_code": "keypad_7",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "home"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Up arrow' with 'keypad 8'",
"from": {
"key_code": "keypad_8",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Page up' with 'keypad 9'",
"from": {
"key_code": "keypad_9",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Cut with 'Shift + keypad period'",
"from": {
"key_code": "keypad_period",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "x",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Copy with 'Control + keypad 0'",
"from": {
"key_code": "keypad_0",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "c",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Paste with 'Shift + keypad 0'",
"from": {
"key_code": "keypad_0",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "v",
"modifiers": [
"command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Swap 'right Alt ⎇' key and 'Menu/Application' key",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "application",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_option"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Home' key to '⌘ + Left arrow'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "home"
},
"to": [
{
"key_code": "left_arrow",
"modifiers": "command"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'End' key to '⌘ + Right arrow'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "end"
},
"to": [
{
"key_code": "right_arrow",
"modifiers": "command"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Desktop Left' key (F3 key) to 'Move left a space' action",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": [
"left_option",
"left_control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Desktop Right' key (F4 key) to 'Move right a space' action",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "right_arrow",
"modifiers": {
"mandatory": [
"left_option",
"left_control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Cortana/Search' key (F5 key) to launching 'Spotlight'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "f21",
"modifiers": {
"mandatory": [
"left_option",
"left_shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"apple_vendor_keyboard_key_code": "spotlight"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Share' key (F6 key) to launching 'AirDrop.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "f21",
"modifiers": {
"mandatory": [
"left_option",
"left_command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "open -a 'AirDrop.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Connect' key (F7 key) to launching 'Screen Sharing.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "f21",
"modifiers": {
"mandatory": [
"left_option",
"left_control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "open -a 'Screen Sharing.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Windows Settings' key (F8 key) to launching 'System Preferences.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "f21",
"modifiers": {
"mandatory": [
"left_option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "open -a 'System Preferences.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Back' mouse button to 'Mission Control.app' action",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"modifiers": {
"optional": [
"any"
]
},
"pointing_button": "button4"
},
"to": [
{
"apple_vendor_keyboard_key_code": "mission_control"
}
],
"type": "basic"
}
]
},
{
"description": "Map 'Windows' mouse button to launching 'Launchpad.app'",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
}
],
"from": {
"key_code": "right_gui",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"shell_command": "open -a 'Launchpad.app'"
}
],
"type": "basic"
}
]
},
{
"description": "Toggle 'Numlock' on Numpad",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_if",
"value": 0
}
],
"description": "Enable 'Numlock'",
"from": {
"key_code": "keypad_num_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "Numlock",
"value": 1
}
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 0
}
],
"description": "Disable 'Numlock'",
"from": {
"key_code": "keypad_num_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "Numlock",
"value": 0
}
}
],
"type": "basic"
}
]
},
{
"description": "If 'Numlock' enabled map Numpad keys as arrows (7 = Home,1 = End,9 = Page Up,3 = Page Down,8 = Up arrow,2 = Down arrow,4 = Left arrow,6 = Right arrow) and as copy/cut/paste (Shift+. = ⌘+x,Shift+0 = ⌘+v,Ctrl+0 = ⌘+c)",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'End' with 'keypad 1'",
"from": {
"key_code": "keypad_1",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "end"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Down arrow' with 'keypad 2'",
"from": {
"key_code": "keypad_2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Page down' with 'keypad 3'",
"from": {
"key_code": "keypad_3",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Left arrow' with 'keypad 4'",
"from": {
"key_code": "keypad_4",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Disable 'keypad 5'",
"from": {
"key_code": "keypad_5"
},
"to": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Right arrow' with 'keypad 6'",
"from": {
"key_code": "keypad_6",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Home' with 'keypad 7'",
"from": {
"key_code": "keypad_7",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "home"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Up arrow' with 'keypad 8'",
"from": {
"key_code": "keypad_8",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Execute 'Page up' with 'keypad 9'",
"from": {
"key_code": "keypad_9",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Cut with 'Shift + keypad period'",
"from": {
"key_code": "keypad_period",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "x",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Copy with 'Control + keypad 0'",
"from": {
"key_code": "keypad_0",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "c",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"product_id": 1957,
"vendor_id": 1118
}
],
"type": "device_if"
},
{
"name": "Numlock",
"type": "variable_unless",
"value": 1
}
],
"description": "Paste with 'Shift + keypad 0'",
"from": {
"key_code": "keypad_0",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "v",
"modifiers": [
"command"
]
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 834,
"vendor_id": 1452
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": false,
"is_pointing_device": true,
"product_id": 834,
"vendor_id": 1452
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 1957,
"vendor_id": 1118
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_gui"
}
]
},
{
"from": {
"key_code": "left_control"
},
"to": [
{
"key_code": "left_command"
}
]
},
{
"from": {
"key_code": "right_option"
},
"to": [
{
"key_code": "left_option"
}
]
}
],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": false,
"is_pointing_device": true,
"product_id": 1957,
"vendor_id": 1118
},
"ignore": true,
"manipulate_caps_lock_led": 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": [
{
"apple_vendor_keyboard_key_code": "mission_control"
}
]
},
{
"from": {
"key_code": "f4"
},
"to": [
{
"apple_vendor_keyboard_key_code": "spotlight"
}
]
},
{
"from": {
"key_code": "f5"
},
"to": [
{
"consumer_key_code": "dictation"
}
]
},
{
"from": {
"key_code": "f6"
},
"to": [
{
"key_code": "f6"
}
]
},
{
"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": "fast_forward"
}
]
},
{
"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": "Sculpt Ergo Keyboard",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [],
"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