Skip to content

Instantly share code, notes, and snippets.

@JonTheNiceGuy
Created June 28, 2022 13:42
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 JonTheNiceGuy/a15514656d0bb04245e39d0853914d20 to your computer and use it in GitHub Desktop.
Save JonTheNiceGuy/a15514656d0bb04245e39d0853914d20 to your computer and use it in GitHub Desktop.
Karabiner for OS X Keyboard Remapping

Karabiner for OS X Keyboard Remapping

This file should be imported into Karabiner, probably via the "Karabiner Complex Rules Generator".

This remaps the following keys:

` | " @ # ~ \ |

This is done with a single rule, and probably should be written in such a way that each is an individual rule!

{
"title": "Remap non-Mac British Keyboard Layouts over Mac British Keyboard Layouts (backtick, pipe, double-quote, at-sign, octothorpe, tilde, backslash)",
"rules": [
{
"description": "Remap non-Mac British Keyboard Layouts over Mac British Keyboard Layouts (backtick, pipe, double-quote, at-sign, octothorpe, tilde, backslash)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "2",
"modifiers": [
"left_shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "quote",
"modifiers": [
"left_shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "backslash",
"modifiers": [
"left_shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "backslash",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"left_shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "non_us_backslash"
},
"to": [
{
"key_code": "backslash"
}
]
},
{
"type": "basic",
"from": {
"key_code": "backslash"
},
"to": [
{
"key_code": "3",
"modifiers": [
"left_option"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "backslash",
"modifiers": [
"left_shift"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment