Skip to content

Instantly share code, notes, and snippets.

@ryonakae
Last active October 6, 2019 15:22
Show Gist options
  • Save ryonakae/09a6814b34b78b9a0215960fba1b5fec to your computer and use it in GitHub Desktop.
Save ryonakae/09a6814b34b78b9a0215960fba1b5fec to your computer and use it in GitHub Desktop.
My Rules of Karabiner-Elements Complex Modifications
{
"title": "My Rules",
"rules": [
{
"description": "Change grave to esc / fn+grave to backslash / backslash to grave",
"manipulators": [
{ "_comment": "graveをescにする" },
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"optional": [
"command",
"control",
"option",
"shift"
]
}
},
"to": [
{
"key_code": "escape"
}
]
},
{ "_comment": "fn+graveをbackslashにする" },
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"mandatory": ["fn"],
"optional": [
"command",
"control",
"option",
"shift"
]
}
},
"to": [
{
"key_code": "backslash"
}
]
},
{ "_comment": "backslashをgraveにする" },
{
"type": "basic",
"from": {
"key_code": "backslash",
"modifiers": {
"optional": [
"command",
"control",
"option",
"shift"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
]
}
]
}
]
}
@ryonakae
Copy link
Author

ryonakae commented Oct 6, 2019

jsonを~/.config/karabiner/assets/complex_modifications以下に置く

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