Last active
October 6, 2019 15:22
-
-
Save ryonakae/09a6814b34b78b9a0215960fba1b5fec to your computer and use it in GitHub Desktop.
My Rules of Karabiner-Elements Complex Modifications
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
{ | |
"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" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jsonを
~/.config/karabiner/assets/complex_modifications
以下に置く