Skip to content

Instantly share code, notes, and snippets.

@david0
Last active January 21, 2021 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david0/6ba8e930b10fac0a7b545f412b9c022d to your computer and use it in GitHub Desktop.
Save david0/6ba8e930b10fac0a7b545f412b9c022d to your computer and use it in GitHub Desktop.
Karabiner Neo2 Config without sticky M4
{
"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": 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": "Neo2 layer 4",
"manipulators": [
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "d",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "e",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "s",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "f",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "q",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "t",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "z",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "w",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "r",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "delete_forward"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "m",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_1"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "comma",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_2"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "period",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_3"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "j",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_4"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "k",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_5"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "l",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_6"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "u",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_7"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "i",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_8"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "o",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_9"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "spacebar",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_0"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "9",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_slash"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "0",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_asterisk"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "hyphen",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_hyphen"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "p",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "keypad_plus"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "v",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "return_or_enter"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "quote",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "period"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "semicolon",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "comma"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "x",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "tab"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "8",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "tab"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "n",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "semicolon",
"modifiers": [
"right_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "slash",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"command",
"left_option"
]
}
},
"to": [
{
"key_code": "slash",
"modifiers": [
"right_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "b",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"left_option"
]
}
},
"to": [
{
"key_code": "b",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "c",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"left_option"
]
}
},
"to": [
{
"key_code": "w",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "a",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"left_option"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "g",
"modifiers": {
"optional": [
"shift",
"caps_lock",
"left_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "non_us_backslash"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "non_us_backslash",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "1"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "1",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "2"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "2",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "3"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "3",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "4"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "4",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "5"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "5",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "6"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "6",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "7"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "7",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "hyphen"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "hyphen",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "equal_sign"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "equal_sign",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "open_bracket"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "open_bracket",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "close_bracket"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "close_bracket",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "y"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "y",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "h"
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "h",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Neo2 layer 6",
"manipulators": [
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "non_us_backslash",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "1",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "2",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "3",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "4",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "5",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "6",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "7",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "7",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "8",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "9",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "0",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "hyphen",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "hyphen",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "equal_sign",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "equal_sign",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "q",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "w",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "e",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "r",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "t",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "t",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "y",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "u",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "i",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "o",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "p",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "open_bracket",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "close_bracket",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "close_bracket",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "a",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "s",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "d",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "f",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "g",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "h",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "j",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "k",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "l",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "semicolon",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "quote",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "z",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "z",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "x",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "x",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "c",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "c",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "v",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "v",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "b",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "n",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "m",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "m",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "comma",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "period",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 0
}
],
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": [
"right_option"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_option",
"left_shift"
]
},
{
"key_code": "slash",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Neo2 mod 3 and 4 keys (Windows keyboard). Toggle mod4 by pressing both mod4 keys simultaneously.",
"manipulators": [
{
"from": {
"key_code": "non_us_pound",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_option"
}
],
"type": "basic"
},
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_option"
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 2
}
],
"from": {
"simultaneous": [
{
"key_code": "non_us_backslash"
},
{
"key_code": "right_command"
}
]
},
"to": [
{
"halt": true,
"set_variable": {
"name": "neo2_mod_4",
"value": 2
}
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_if",
"value": 2
}
],
"from": {
"simultaneous": [
{
"key_code": "non_us_backslash"
},
{
"key_code": "right_command"
}
]
},
"to": [
{
"set_variable": {
"name": "neo2_mod_4",
"value": 0
}
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 2
}
],
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "neo2_mod_4",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "neo2_mod_4",
"value": 0
}
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "neo2_mod_4",
"type": "variable_unless",
"value": 2
}
],
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "neo2_mod_4",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "neo2_mod_4",
"value": 0
}
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 592,
"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": [
{
"from": {
"key_code": "right_option"
},
"to": {
"key_code": "right_command"
}
}
],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"country_code": 0,
"keyboard_type": "iso",
"mouse_key_xy_scale": 100
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment