Skip to content

Instantly share code, notes, and snippets.

@ninjaPixel
Last active April 17, 2022 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninjaPixel/bdef2908dd5359f3d16570c09e17c508 to your computer and use it in GitHub Desktop.
Save ninjaPixel/bdef2908dd5359f3d16570c09e17c508 to your computer and use it in GitHub Desktop.
My custom arrow key mappings. The right option key is used to 'shift' into a different mode.
{
"title": "Arrows (right_alt || right_control) v0.2.0",
"rules": [
{
"description": "right_alt + e = up",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_alt"
]
},
"key_code": "e"
},
"to": [
{
"repeat": true,
"key_code": "up_arrow"
}
]
}
]
},
{
"description": "right_alt + d = down",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_alt"
]
},
"key_code": "d"
},
"to": [
{
"repeat": true,
"key_code": "down_arrow"
}
]
}
]
},
{
"description": "right_alt + f = right",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_alt"
]
},
"key_code": "f"
},
"to": [
{
"repeat": true,
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "right_alt + s = left",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_alt"
]
},
"key_code": "s"
},
"to": [
{
"repeat": true,
"key_code": "left_arrow"
}
]
}
]
},
{
"description": "right_alt + t = page up",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_alt"
]
},
"key_code": "t"
},
"to": [
{
"repeat": true,
"key_code": "page_up"
}
]
}
]
},
{
"description": "right_alt + g = page down",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_alt"
]
},
"key_code": "g"
},
"to": [
{
"repeat": true,
"key_code": "page_down"
}
]
}
]
},
{
"description": "right_control + e = up",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_control"
]
},
"key_code": "e"
},
"to": [
{
"repeat": true,
"key_code": "up_arrow"
}
]
}
]
},
{
"description": "right_control + d = down",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_control"
]
},
"key_code": "d"
},
"to": [
{
"repeat": true,
"key_code": "down_arrow"
}
]
}
]
},
{
"description": "right_control + f = right",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_control"
]
},
"key_code": "f"
},
"to": [
{
"repeat": true,
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "right_control + s = left",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_control"
]
},
"key_code": "s"
},
"to": [
{
"repeat": true,
"key_code": "left_arrow"
}
]
}
]
},
{
"description": "right_control + t = page up",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_control"
]
},
"key_code": "t"
},
"to": [
{
"repeat": true,
"key_code": "page_up"
}
]
}
]
},
{
"description": "right_control + g = page down",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"right_control"
]
},
"key_code": "g"
},
"to": [
{
"repeat": true,
"key_code": "page_down"
}
]
}
]
}
]
}
@ninjaPixel
Copy link
Author

To enable these mappings on MacOS (assuming that you have already installed Karabiner):

  1. Copy the JSON in this gist
  2. Open https://genesy.github.io/karabiner-complex-rules-generator/
  3. Paste the JSON (see screenshot)
  4. Click the install button, which will open Karabiner
  5. Enable these new rules

Screenshot 2022-04-14 at 09 23 14

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