Skip to content

Instantly share code, notes, and snippets.

@henrebotha
Last active March 22, 2025 14:38

Revisions

  1. henrebotha revised this gist Dec 12, 2017. No changes.
  2. henrebotha revised this gist Dec 12, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion instructions.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    3. Find `complex_modifications`. It will have a key `rules` that takes a list (`"rules": [...]`).
    4. Inside the square brackets, paste this:

    ```
    ```json
    {
    "description": "Change Caps Lock + I/J/K/L to Arrow Keys",
    "manipulators": [
  3. henrebotha revised this gist Dec 12, 2017. 1 changed file with 124 additions and 124 deletions.
    248 changes: 124 additions & 124 deletions instructions.md
    Original file line number Diff line number Diff line change
    @@ -6,128 +6,128 @@
    4. Inside the square brackets, paste this:

    ```
    {
    "description": "Change Caps Lock + I/J/K/L to Arrow Keys",
    "manipulators": [
    {
    "from": {
    "key_code": "caps_lock"
    },
    "to": [
    {
    "set_variable": {
    "name": "caps_arrows_mode",
    "value": 1
    }
    }
    ],
    "to_after_key_up": [
    {
    "set_variable": {
    "name": "caps_arrows_mode",
    "value": 0
    }
    }
    ],
    "to_if_alone": [
    {
    "key_code": "caps_lock"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "j",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "left_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "k",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "down_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "i",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "up_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "l",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "right_arrow"
    }
    ],
    "type": "basic"
    }
    ]
    }
    {
    "description": "Change Caps Lock + I/J/K/L to Arrow Keys",
    "manipulators": [
    {
    "from": {
    "key_code": "caps_lock"
    },
    "to": [
    {
    "set_variable": {
    "name": "caps_arrows_mode",
    "value": 1
    }
    }
    ],
    "to_after_key_up": [
    {
    "set_variable": {
    "name": "caps_arrows_mode",
    "value": 0
    }
    }
    ],
    "to_if_alone": [
    {
    "key_code": "caps_lock"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "j",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "left_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "k",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "down_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "i",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "up_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "l",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "right_arrow"
    }
    ],
    "type": "basic"
    }
    ]
    }
    ```
  4. henrebotha revised this gist Dec 12, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion instructions.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    3. Find `complex_modifications`. It will have a key `rules` that takes a list (`"rules": [...]`).
    4. Inside the square brackets, paste this:


    ```
    {
    "description": "Change Caps Lock + I/J/K/L to Arrow Keys",
    "manipulators": [
    @@ -130,3 +130,4 @@
    }
    ]
    }
    ```
  5. henrebotha created this gist Dec 12, 2017.
    132 changes: 132 additions & 0 deletions instructions.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,132 @@
    # Instructions

    1. Install Karabiner Elements
    2. Open your karabiner.json file (it will be in `~/.config/karabiner/karabiner.json`).
    3. Find `complex_modifications`. It will have a key `rules` that takes a list (`"rules": [...]`).
    4. Inside the square brackets, paste this:


    {
    "description": "Change Caps Lock + I/J/K/L to Arrow Keys",
    "manipulators": [
    {
    "from": {
    "key_code": "caps_lock"
    },
    "to": [
    {
    "set_variable": {
    "name": "caps_arrows_mode",
    "value": 1
    }
    }
    ],
    "to_after_key_up": [
    {
    "set_variable": {
    "name": "caps_arrows_mode",
    "value": 0
    }
    }
    ],
    "to_if_alone": [
    {
    "key_code": "caps_lock"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "j",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "left_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "k",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "down_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "i",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "up_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "caps_arrows_mode",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "l",
    "modifiers": {
    "optional": [
    "any"
    ]
    }
    },
    "to": [
    {
    "key_code": "right_arrow"
    }
    ],
    "type": "basic"
    }
    ]
    }