Skip to content

Instantly share code, notes, and snippets.

@alexkilla
Created September 21, 2018 14:55
Show Gist options
  • Select an option

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

Select an option

Save alexkilla/79a23371aebd76a51829ab85f32c57e8 to your computer and use it in GitHub Desktop.
This file is to replace arrow key for option + ijkl, just import in karabiner elements (click link in the comments
{
"title": "Option + IJKL",
"rules": [
{ "description": "Caps Lock to Fn",
"manipulators": [{"type": "basic", "from": {"key_code": "caps_lock", "modifiers": {"optional": ["any"]}}, "to": [{"key_code": "fn"}]}] },
{ "description": "option + I/J/K/L to Arrow Keys",
"manipulators": [{"type": "basic", "from": {"key_code": "i", "modifiers": {"mandatory": ["option"], "optional": ["any"]}}, "to": [{"key_code": "up_arrow"}] },
{"type": "basic", "from": {"key_code": "j", "modifiers": {"mandatory": ["option"], "optional": ["any"]}}, "to": [{"key_code": "left_arrow"}]},
{"type": "basic", "from": {"key_code": "k", "modifiers": {"mandatory": ["option"], "optional": ["any"]}}, "to": [{"key_code": "down_arrow"}]},
{"type": "basic", "from": {"key_code": "l", "modifiers": {"mandatory": ["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"}]}] },
{ "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