Last active
May 31, 2020 20:34
-
-
Save jgrodziski/1a7485fde6619cd3f3ef31e7d5e8b81b to your computer and use it in GitHub Desktop.
karabiner elements - shift press alone as parenthesis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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