Skip to content

Instantly share code, notes, and snippets.

@soomtong
Last active April 1, 2022 15:27
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soomtong/c975ff6ede873697b2f4e825453ddfef to your computer and use it in GitHub Desktop.
Save soomtong/c975ff6ede873697b2f4e825453ddfef to your computer and use it in GitHub Desktop.
happy hacking keyboard layout for macOS karabiner
{
"title": "HHKB for macOS",
"rules": [
{
"description": "shift + esc to tilde",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"shift"
]
}
]
}
]
},
{
"description": "option + esc to option + tilde",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"option"
]
}
]
}
]
},
{
"description": "cmd + esc to cmd + backtick",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"command"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"command"
]
}
]
}
]
},
{
"description": "left cmd + backtick to show desktop",
"manipulators": [
{
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"mandatory": [
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f13"
}
],
"type": "basic"
}
]
},
{
"description": "right cmd + backtick to lauchpad",
"manipulators": [
{
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f15"
}
],
"type": "basic"
}
]
},
{
"description": "right option + backtick to notification",
"manipulators": [
{
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"mandatory": [
"right_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f14"
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment