Created
April 25, 2024 12:03
-
-
Save maxpoletaev/21154acdbaace080da3c33ff0b482396 to your computer and use it in GitHub Desktop.
~/.config/karabiner/assets/complex_modifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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