Skip to content

Instantly share code, notes, and snippets.

@airblade
Created April 13, 2022 18:46
Show Gist options
  • Select an option

  • Save airblade/7ec172d631f10182729048de0e69573c to your computer and use it in GitHub Desktop.

Select an option

Save airblade/7ec172d631f10182729048de0e69573c to your computer and use it in GitHub Desktop.
Karabiner rules elements
{
"description": "Left shift -> {",
"manipulators": [
{
"from": {
"key_code": "left_shift"
},
"to_if_alone": {
"key_code": "open_bracket",
"modifiers": ["left_shift"]
},
"to": {
"key_code": "left_shift"
},
"type": "basic"
}
]
},
{
"description": "Right shift -> {",
"manipulators": [
{
"from": {
"key_code": "right_shift"
},
"to_if_alone": {
"key_code": "close_bracket",
"modifiers": ["right_shift"]
},
"to": {
"key_code": "right_shift"
},
"type": "basic"
}
]
},
{
"description": "Left shift + right command -> [",
"manipulators": [
{
"from": {
"key_code": "left_shift",
"modifiers": {
"mandatory": ["right_command"]
}
},
"to": {
"key_code": "open_bracket"
},
"type": "basic"
}
]
},
{
"description": "Right shift + left command -> ]",
"manipulators": [
{
"from": {
"key_code": "right_shift",
"modifiers": {
"mandatory": ["left_command"]
}
},
"to": {
"key_code": "close_bracket"
},
"type": "basic"
}
]
},
@airblade

Copy link
Copy Markdown
Author

This seems to lead to some odd behaviour...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment