Skip to content

Instantly share code, notes, and snippets.

@skhrv
Created September 18, 2020 05:05
Show Gist options
  • Save skhrv/60488d624bd2881ebe35d0e1d70d067d to your computer and use it in GitHub Desktop.
Save skhrv/60488d624bd2881ebe35d0e1d70d067d to your computer and use it in GitHub Desktop.
[Karabiner] Swap non_us_backslash and grave_accent_and_tilde for ru only
"rules": [
{
"description": "Swap non_us_backslash and grave_accent_and_tilde for ru only",
"manipulators": [
{
"conditions": [
{
"input_sources": [
{
"language": "ru"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"optional": [
"right_shift",
"left_shift"
]
}
},
"to": [
{
"key_code": "non_us_backslash"
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [
{
"language": "ru"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"optional": [
"right_shift",
"left_shift"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
],
"type": "basic"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment