One feature I miss terribly is the mapping of a single press of the left/right shift key to ( / ). Is this possible now, or yet to come?
https://github.com/tekezo/Karabiner-Elements/issues/8 contains an interesting workaround for a similar problem -- it works if you have Keyboard Maestro.
With the new complex modifications feature that also enabled Hyper you can now also map shift to parens again! 馃帀
Here is how I did it: https://github.com/martinklepsch/dotfiles/commit/83e4989d7ea3afb2809e74b34e77d8111136b5d8
That is very nice, and works very well with US keyboard layout. I switch back and forth between a few different layouts, among them Swedish which has (, ) mapped to shift + 8, 9. Is there a way of getting a parenthesis directly? It is not a big issue for me, since I use the shifts to parentheses when I program, for which I use US layout, anyway, but a more general solution would be nice.
@martinklepsch did you manage to get 'complex_modifications' to work? I did not, I add them to the json file, Karabiner-Elements shows them up in the UI, but nothing changes.
{
"description": "Post ( if left_shift pressed alone",
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": []
}
],
"to_if_alone": [
{
"key_code": "9",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"description": "Post ) if right_shift is pressed alone",
"from": {
"key_code": "right_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_shift",
"modifiers": []
}
],
"to_if_alone": [
{
"key_code": "0",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
}
]
FWIW, I am on Karabiner-Elements v0.91.11
Nevermind, mistake on my side, I got the configuration schema wrong -- I had added these to 'rules', instead of 'rules.manipulators'..
I changed my config so that the shift to parens thing is implemented as a separate complex modification: https://github.com/martinklepsch/dotfiles/blob/6a2f4d555c763ae806cd8e875be821a52746914a/config/karabiner/karabiner.json#L16
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
With the new complex modifications feature that also enabled Hyper you can now also map shift to parens again! 馃帀
Here is how I did it: https://github.com/martinklepsch/dotfiles/commit/83e4989d7ea3afb2809e74b34e77d8111136b5d8