Skip to content

Instantly share code, notes, and snippets.

@alexkilla
Last active September 21, 2018 15:57
Show Gist options
  • Select an option

  • Save alexkilla/ed400b9be6ec561d263515391d9fb778 to your computer and use it in GitHub Desktop.

Select an option

Save alexkilla/ed400b9be6ec561d263515391d9fb778 to your computer and use it in GitHub Desktop.
This file is to replace arrow keys for option + ijkl. To import in karabiner elements (click link in the comments)
{
"title": "Option + IJKL",
"rules": [
{ "description": "Caps Lock to Ctrl",
"manipulators": [{"type": "basic", "from": {"key_code": "caps_lock", "modifiers": {"optional": ["any"]}}, "to": [{"key_code": "right_control"}]}] },
{ "description": "Alt to Command",
"manipulators": [{"type": "basic", "from": {"key_code": "left_options", "modifiers": {"optional": ["any"]}}, "to": [{"key_code": "left_command"}]}] },
{ "description": "Command to Alt",
"manipulators": [{"type": "basic", "from": {"key_code": "left_command", "modifiers": {"optional": ["any"]}}, "to": [{"key_code": "left_option"}]}] },
{ "description": "option + I/J/K/L to Arrow Keys",
"manipulators": [{"type": "basic", "from": {"key_code": "i", "modifiers": {"mandatory": ["left_option"], "optional": ["any"]}}, "to": [{"key_code": "up_arrow"}] },
{"type": "basic", "from": {"key_code": "j", "modifiers": {"mandatory": ["left_option"], "optional": ["any"]}}, "to": [{"key_code": "left_arrow"}]},
{"type": "basic", "from": {"key_code": "k", "modifiers": {"mandatory": ["left_option"], "optional": ["any"]}}, "to": [{"key_code": "down_arrow"}]},
{"type": "basic", "from": {"key_code": "l", "modifiers": {"mandatory": ["left_option"], "optional": ["any"]}}, "to": [{"key_code": "right_arrow"}]}] },
{ "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"}]}] },
]
}
@alexkilla
Copy link
Author

alexkilla commented Sep 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment