Skip to content

Instantly share code, notes, and snippets.

@keyz
Forked from eyemyth/shift_to_parentheses.json
Last active November 9, 2019 08:14
Show Gist options
  • Save keyz/00313726bddc15afc53a0ea94a58a4ef to your computer and use it in GitHub Desktop.
Save keyz/00313726bddc15afc53a0ea94a58a4ef to your computer and use it in GitHub Desktop.
Complex modification rules for Karabiner Elements to map shift keys to parentheses. Use the URL in the comment to import easily.
{
"title": "Single-hit shift to parentheses",
"rules": [
{
"description": "Map single-hit left shift to (",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": ["any"]
}
},
"to_if_alone": [
{
"key_code": "9",
"modifiers": ["left_shift"]
}
],
"to": [
{
"key_code": "left_shift"
}
]
}
]
},
{
"description": "Map single-hit right shift to )",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_shift",
"modifiers": {
"optional": ["any"]
}
},
"to_if_alone": [
{
"key_code": "0",
"modifiers": ["right_shift"]
}
],
"to": [
{
"key_code": "right_shift"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment