Skip to content

Instantly share code, notes, and snippets.

@korchasa
Created March 20, 2026 15:26
Show Gist options
  • Select an option

  • Save korchasa/577566efde316c61763e5db56a2b7bc5 to your computer and use it in GitHub Desktop.

Select an option

Save korchasa/577566efde316c61763e5db56a2b7bc5 to your computer and use it in GitHub Desktop.
{
"description": "Ctrl+any letter sends Latin equivalent when Russian layout is active",
"manipulators": [
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "a",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "a",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "b",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "b",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "c",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "c",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "d",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "d",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "e",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "e",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "f",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "f",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "g",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "g",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "h",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "i",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "j",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "k",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "l",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "m",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "n",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "n",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "o",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "o",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "p",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "p",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "q",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "r",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "r",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "s",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "s",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "t",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "t",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "u",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "u",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "v",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "v",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "w",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "w",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "x",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "x",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "y",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "y",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [{ "language": "ru" }],
"type": "input_source_if"
}
],
"from": {
"key_code": "z",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "select_input_source": { "language": "en" } },
{
"key_code": "z",
"modifiers": ["control"]
}
],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment