Skip to content

Instantly share code, notes, and snippets.

@jgrodziski
Last active May 31, 2020 20:34
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 jgrodziski/1a7485fde6619cd3f3ef31e7d5e8b81b to your computer and use it in GitHub Desktop.
Save jgrodziski/1a7485fde6619cd3f3ef31e7d5e8b81b to your computer and use it in GitHub Desktop.
karabiner elements - shift press alone as parenthesis
//add these 2 rules in ~/.config/karabiner/karabiner.json under profiles/complex_modifications/rules
{
"description": "Change left_shift to left parens if alone.",
"manipulators": [
{
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift"
}
],
"to_if_alone": [
{
"key_code": "9",
"modifiers": ["left_shift"]
}
],
"type": "basic"
}
]
},
{ "description": "Change right_shift to right parens if alone.",
"manipulators": [
{
"from": {
"key_code": "right_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_shift"
}
],
"to_if_alone": [
{
"key_code": "0",
"modifiers": ["right_shift"]
}
],
"type": "basic"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment