Skip to content

Instantly share code, notes, and snippets.

@sajt
Created June 26, 2024 12:32
Show Gist options
  • Save sajt/21a929b7ad52577d274b6d5211bf75e8 to your computer and use it in GitHub Desktop.
Save sajt/21a929b7ad52577d274b6d5211bf75e8 to your computer and use it in GitHub Desktop.
Swap y and z with Karabiner only if input source is english
{
"Title": "Swap 'y' and 'z'",
"rules": [
{
"description": "Swap 'y' and 'z'",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "y"
},
"to": [
{
"key_code": "z"
}
],
"conditions": [
{
"input_sources": [
{
"language": "en"
}
],
"type": "input_source_if"
}
]
},
{
"type": "basic",
"from": {
"key_code": "z"
},
"to": [
{
"key_code": "y"
}
],
"conditions": [
{
"input_sources": [
{
"language": "en"
}
],
"type": "input_source_if"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment