Karabiner-Elements でマウス操作を行う
code:json
{
"description": "vim style mouse control with right command",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control",
"left_shift",
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"mouse_key": {
"x": -800,
"y": 0
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_control",
"left_shift",
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"mouse_key": {
"x": 0,
"y": 800
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_control",
"left_shift",
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"mouse_key": {
"x": 0,
"y": -800
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_control",
"left_shift",
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"mouse_key": {
"x": 800,
"y": 0
}
}
],
"type": "basic"
},
{
"type": "basic",
"from": {
"key_code": "right_shift",
"modifiers": {
"mandatory": [
"left_control",
"left_shift",
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"pointing_button": "button1"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_command",
"modifiers": {
"mandatory": [
"left_control",
"left_shift",
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"pointing_button": "button2"
}
]
}
]
}
#mouse #shourtcut #karabiner-elements