Skip to content

Instantly share code, notes, and snippets.

@otijhuis
Created July 28, 2017 16:54
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 otijhuis/ac1084920ccdf4163b4ca6e3529e5bf8 to your computer and use it in GitHub Desktop.
Save otijhuis/ac1084920ccdf4163b4ca6e3529e5bf8 to your computer and use it in GitHub Desktop.
Karabiner Elements shift -> parens
{
"title": "Shift -> Parens",
"rules": [
{
"description": "map left shift to opening parenthesis",
"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 right shift to closing parenthesis",
"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"
}
]
}
]
}
]
}
@otijhuis
Copy link
Author

Load from browser with: karabiner://karabiner/assets/complex_modifications/import?url=file:///path/to/file/shift-parens.json

@abobrow
Copy link

abobrow commented Nov 3, 2018

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment