Exemple de configuration pour le mousqueton
{
"title": "select_input_source example",
"rules": [
{
"description": "Change input source by ctrl + 1/2/3 en/es/zh",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"select_input_source": {
"input_source_id": "^com\\.apple\\.keylayout\\.ABC$"
}
}
]
},
{
"type": "basic",
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"select_input_source": {
"input_source_id": "^com\\.apple\\.keylayout\\.Latin*"
}
}
]
},
{
"type": "basic",
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"select_input_source": {
"language": "zh*"
}
}
]
}
]
}
]
}
sur la base de https://ke-complex-modifications.pqrs.org/#example_select_input_source