Skip to content

Instantly share code, notes, and snippets.

@jackytang
Last active March 4, 2022 13:10
Show Gist options
  • Save jackytang/3713974a2c9870830438f3426d6e0cf8 to your computer and use it in GitHub Desktop.
Save jackytang/3713974a2c9870830438f3426d6e0cf8 to your computer and use it in GitHub Desktop.
Karabiner-Elements config: Change left_option + hjklnp to arrow karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/jackytang/3713974a2c9870830438f3426d6e0cf8/raw/4f4bea826ac0464eca4b4dbc1b2d7f70a7897124/karabiner_opgion_hjklnp_to_arrow.json
{
"title": "Change left_option (⌥) + hjklnp to arrow for HHKB",
"rules": [
{
"description": "Change left_option (⌥) + hjklnp to arrow for HHKB",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "home"
}
],
"type": "basic"
},
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "end"
}
],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
},
{
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
},
{
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
},
{
"from": {
"key_code": "close_bracket",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment