Last active
March 10, 2025 02:50
-
-
Save stan-voo/9b7721535a7286f32046ae93d42c65fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"global": { "show_in_menu_bar": false }, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"rules": [ | |
{ | |
"description": "non_us_backslash to grave_accent_and_tilde_ru", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [{ "language": "ru" }], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "non_us_backslash", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": ["any"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "caps_lock to grave_accent_and_tilde_ru", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [{ "language": "ru" }], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "non_us_backslash", | |
"modifiers": ["left_shift"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "caps_lock to Open Bracket", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [{ "language": "uk" }], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "non_us_backslash", | |
"modifiers": ["left_option", "left_shift"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Tilde to Hash in English", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [{ "language": "en" }], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "3", | |
"modifiers": ["left_shift"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Tilde to Hash in Russian", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [{ "language": "ru" }], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "3", | |
"modifiers": ["left_option"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Tilde to Hash in Ukrainian", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [{ "language": "uk" }], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "3", | |
"modifiers": ["left_option"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Caps to Open Bracket in English", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [{ "language": "en" }], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [{ "key_code": "open_bracket" }], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Left CMD -> en", | |
"manipulators": [ | |
{ | |
"from": { "key_code": "left_command" }, | |
"to": [{ "key_code": "left_command" }], | |
"to_if_alone": [{ "select_input_source": { "language": "en" } }], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Right CMD -> ru", | |
"manipulators": [ | |
{ | |
"from": { "key_code": "right_command" }, | |
"to": [{ "key_code": "right_command" }], | |
"to_if_alone": [{ "select_input_source": { "language": "ru" } }], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Right Opt -> uk", | |
"manipulators": [ | |
{ | |
"from": { "key_code": "right_option" }, | |
"to": [{ "key_code": "right_option" }], | |
"to_if_alone": [{ "select_input_source": { "language": "uk" } }], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"name": "Default profile", | |
"selected": true, | |
"virtual_hid_keyboard": { | |
"country_code": 0, | |
"keyboard_type_v2": "iso" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment