Created
April 22, 2023 01:46
-
-
Save demicuz/7769f01a78a3037b680cad5edd8026b9 to your computer and use it in GitHub Desktop.
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": "Caps Lock (Ctrl) + HJKL", | |
"rules": [ | |
{ "description": "Caps Lock to Ctrl", | |
"manipulators": [{"type": "basic", "from": {"key_code": "caps_lock", "modifiers": {"optional": ["any"]}}, "to": [{"key_code": "left_control"}]}] }, | |
{ "description": "Ctrl + H/J/K/L to Arrow Keys", | |
"manipulators": [{"type": "basic", "from": {"key_code": "h", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "left_arrow"}] }, | |
{"type": "basic", "from": {"key_code": "j", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "down_arrow"}]}, | |
{"type": "basic", "from": {"key_code": "k", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "up_arrow"}]}, | |
{"type": "basic", "from": {"key_code": "l", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "right_arrow"}]}] }, | |
{ "description": "Ctrl + D to Delete", | |
"manipulators": [{"type": "basic", "from": {"key_code": "d", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "delete_or_backspace"}]}] }, | |
{ "description": "Disable arrows", | |
"manipulators": [{"type": "basic", "from": {"key_code": "left_arrow"}, "to": [{"key_code": "vk_none"}]}, | |
{"type": "basic", "from": {"key_code": "right_arrow"}, "to": [{"key_code": "vk_none"}]}, | |
{"type": "basic", "from": {"key_code": "up_arrow"}, "to": [{"key_code": "vk_none"}]}, | |
{"type": "basic", "from": {"key_code": "down_arrow"}, "to": [{"key_code": "vk_none"}]}] }, | |
{ "description": "Disable Delete", | |
"manipulators": [{"type": "basic", "from": {"key_code": "delete_or_backspace"}, "to": [{"key_code": "vk_none"}]}] } | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment