Last active
December 3, 2018 02:23
-
-
Save matsuoshi/dcf3dfa26de86da54b91eb0f0b784eaf to your computer and use it in GitHub Desktop.
英数+hjkl でカーソル移動 with Karabiner-Elements https://blog.monaural.net/post/hjkl-to-cursor-key-with-karabiner-elements/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Eisu Cursor", | |
"rules": [ | |
{ | |
"description": "Change EISU + hjkl to arrow keys", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "japanese_eisuu" | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "eisuu", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "eisuu", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "h", | |
"modifiers":{ | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "eisuu", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", | |
"modifiers":{ | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "eisuu", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "k", | |
"modifiers":{ | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "eisuu", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "l", | |
"modifiers":{ | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "eisuu", | |
"value": 1 | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment