Skip to content

Instantly share code, notes, and snippets.

@fengye
Created July 6, 2019 05:13
Show Gist options
  • Save fengye/ff937a2df3fc349b0f9d82b9806dad03 to your computer and use it in GitHub Desktop.
Save fengye/ff937a2df3fc349b0f9d82b9806dad03 to your computer and use it in GitHub Desktop.
Karabiner Complex Modification: HHKB_for_Human_Being
{
"title": "HHKB for Human Being",
"rules": [
{
"description": "Change left_control+ijkl to arrow keys",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Change left_control+[' to PGUP/PGDOWN",
"manipulators": [
{
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
},
{
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
}
]
},
{
"description": "Disable Control+H",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"caps_lock",
"option"
]
}
},
"to": [
{
"key_code": "vk_none"
}
],
"type": "basic"
}
]
},
{
"description": "Disable Cmd+H Hide",
"manipulators": [
{
"description": "",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"command"
]
}
},
"to": [
{
"key_code": "vk_none"
}
],
"type": "basic"
}
]
},
{
"description": "HOME/END map to ctrl+a and ctrl+e",
"manipulators": [
{
"from": {
"key_code": "home",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"left_control",
"right_control"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "end",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "e",
"modifiers": [
"left_control",
"right_control"
]
}
],
"type": "basic"
}
]
},
{
"description": "Map ctrl-P/ctrl-U and ctrl-;/ctrl-o to ctrl-A and ctrl-E",
"manipulators": [
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"left_control",
"right_control"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"left_control",
"right_control"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "e",
"modifiers": [
"left_control",
"right_control"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "e",
"modifiers": [
"left_control",
"right_control"
]
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment