Skip to content

Instantly share code, notes, and snippets.

@tcrammond
Last active October 20, 2017 12:35
Show Gist options
  • Save tcrammond/8461c2a2276dff6caf637c6949c41d0c to your computer and use it in GitHub Desktop.
Save tcrammond/8461c2a2276dff6caf637c6949c41d0c to your computer and use it in GitHub Desktop.
Karabiner-Elements - change fn + i/j/k/l to arrows
// Adapted from https://pqrs.org/osx/karabiner/complex_modifications/json/vi_style_arrows3.json
// 1. vim ~/.config/karabiner/karabiner.json
// 2. Enter the below in complex modifications array
// 3. Check it's enabled inside karabiner UI.
{
"title": "Diamond arrows",
"rules": [
{
"description": "Change Function+i/j/k/l to Arrows",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"fn"
],
"optional": ["any"]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
],
"optional": ["any"]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"fn"
],
"optional": ["any"]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
],
"optional": ["any"]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment