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.

Revisions

  1. alexkilla created this gist Sep 21, 2018.
    19 changes: 19 additions & 0 deletions arroy_keys_to_option_ijkl.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    {
    "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"}]}] }
    ]
    }