This complicated modification ought to work:
{
"description": "alt + semicolon to ? ukrainian and english keyboards",
"manipulators": (
{
"sort": "fundamental",
"circumstances": (
{
"input_sources": (
{
"language": "en"
}
),
"sort": "input_source_if"
}
),
"from": {
"key_code": "semicolon",
"modifiers": {
"obligatory": (
"right_option"
),
"optionally available": ("any")
}
},
"to": (
{
"key_code": "slash",
"modifiers": ("left_shift")
}
)
},
{
"sort": "fundamental",
"circumstances": (
{
"input_sources": (
{
"language": "uk"
}
),
"sort": "input_source_if"
}
),
"from": {
"key_code": "semicolon",
"modifiers": {
"obligatory": (
"right_option"
),
"optionally available": ("any")
}
},
"to": (
{
"key_code": "7",
"modifiers": ("left_shift")
}
)
}
)
}
It is laborious to supply insightful assist as a result of you have not included your try within the query; I can not level out what you will have misunderstood. Having this working instance ought to assist you put the items collectively although.
The
"to": (
{
"key_code": "7",
"modifiers": ("left_shift")
}
)
elements could have to be up to date to output query marks on your keyboard.
Go to System Preferences > Keyboard > Enter Sources, choose the enter supply you wish to output a query mark for, after which press modifier keys like shift, alt, till you see the place the query mark lives.
It’s possible you’ll wish to additional specify the input_source_if situation too. They’re objects with the properties:
{
"input_sources": (
{
"language": "^en$",
"input_source_id": "^com.apple.keylayout.US$",
"input_mode_id": "^com.apple.inputmethod.Japanese.Hiragana$"
}
),
"sort": "input_source_if"
}
All properties are optionally available. Specified within the carbine docs and reproduced for reference her:
| Title | Required | Description |
|---|---|---|
language |
Optionally available | The language regex equivalent to "^en$", "^ja$" |
input_source_id |
Optionally available | The enter supply id regex equivalent to "^com.apple.keylayout.US$" |
input_mode_id |
Optionally available | The enter mode id regex equivalent to "^com.apple.inputmethod.Japanese.Hiragana$" |
You will get your input_source_id and input_mode_id from Karabiner-EventViewer’s Variables tab. input_mode_id will not at all times exist for all enter sources.

