karabiner.json
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Mouse full emulation with right command super fast",
"manipulators": [
{
"from": {
"key_code": "right_command",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "right_command" }],
"to_after_key_up": [
{
"set_variable": {
"name": "mouse_keys_full",
"value": 1
}
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
},
{
"name": "mouse_keys_full_scroll",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "horizontal_wheel": 32 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
},
{
"name": "mouse_keys_full_scroll",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "vertical_wheel": 32 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
},
{
"name": "mouse_keys_full_scroll",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "vertical_wheel": -32 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
},
{
"name": "mouse_keys_full_scroll",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "horizontal_wheel": -32 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "x": -1536 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "y": 1536 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "y": -1536 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "x": 1536 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "v",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "pointing_button": "button1" }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "b",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "pointing_button": "button3" }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "r",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "pointing_button": "button2" }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "f",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "speed_multiplier": 2.0 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "d",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [{ "mouse_key": { "speed_multiplier": 0.3 } }],
"type": "basic"
},
{
"conditions": [
{
"name": "mouse_keys_full",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "s",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [
{
"set_variable": {
"name": "mouse_keys_full_scroll",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "mouse_keys_full_scroll",
"value": 0
}
}
],
"type": "basic"
}
]
},
{
"description": "Screenshot to Backspace",
"manipulators": [
{
"from": {
"key_code": "4",
"modifiers": { "mandatory": ["left_command", "left_shift"] }
},
"to": [{ "key_code": "delete_or_backspace" }],
"type": "basic"
}
]
},
{
"description": "Disable Page Up and Page Down",
"manipulators": [
{
"from": { "key_code": "page_up" },
"to": [{ "key_code": "vk_none" }],
"type": "basic"
},
{
"from": { "key_code": "page_down" },
"to": [{ "key_code": "vk_none" }],
"type": "basic"
}
]
},
{
"description": "Change Option + h/j/k/l to Arrows",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["control"],
"optional": ["caps_lock", "option"]
}
},
"to": [{ "key_code": "delete_or_backspace" }],
"type": "basic"
}
]
}
]
},
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"
}
}
]
}