Skip to content

Instantly share code, notes, and snippets.

@maxpoletaev
Created April 25, 2024 12:03
Show Gist options
  • Save maxpoletaev/21154acdbaace080da3c33ff0b482396 to your computer and use it in GitHub Desktop.
Save maxpoletaev/21154acdbaace080da3c33ff0b482396 to your computer and use it in GitHub Desktop.
~/.config/karabiner/assets/complex_modifications
{
"title": "Custom Layout Switch",
"rules": [
{
"description": "CapsLock to switch to English layout",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock"
},
"to": [
{
"select_input_source": {
"input_source_id": "org.sil.ukelele.keyboardlayout.t.english-ilyabirmantypography"
}
}
]
}
]
},
{
"description": "Shift+CapsLock to switch to Russian layout",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": ["shift"]
}
},
"to": [
{
"select_input_source": {
"input_source_id": "org.sil.ukelele.keyboardlayout.t.russian-ilyabirmantypography"
}
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment