Last active
March 29, 2019 01:36
-
-
Save huytd/69fd6a7f5f421980f87d02ec2a8d64a8 to your computer and use it in GitHub Desktop.
Custom modificator for Karabiner
This file contains 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
{ | |
"description":"Ctrl + G as Escape except Emacs", | |
"manipulators":[ | |
{ | |
"from":{ | |
"key_code":"g", | |
"modifiers":{ | |
"mandatory":[ | |
"control" | |
] | |
} | |
}, | |
"to":[ | |
{ | |
"key_code":"escape" | |
} | |
], | |
"type":"basic", | |
"conditions":[ | |
{ | |
"type":"frontmost_application_unless", | |
"bundle_identifiers":[ | |
"^org\\.gnu\\.Emacs$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description":"Cmd + Ctrl + hjkl to Arrow Keys", | |
"manipulators":[ | |
{ | |
"from":{ | |
"key_code":"h", | |
"modifiers":{ | |
"mandatory":[ | |
"command", | |
"control" | |
] | |
} | |
}, | |
"to":[ | |
{ | |
"key_code":"left_arrow" | |
} | |
], | |
"type":"basic" | |
}, | |
{ | |
"from":{ | |
"key_code":"j", | |
"modifiers":{ | |
"mandatory":[ | |
"command", | |
"control" | |
] | |
} | |
}, | |
"to":[ | |
{ | |
"key_code":"down_arrow" | |
} | |
], | |
"type":"basic" | |
}, | |
{ | |
"from":{ | |
"key_code":"k", | |
"modifiers":{ | |
"mandatory":[ | |
"command", | |
"control" | |
] | |
} | |
}, | |
"to":[ | |
{ | |
"key_code":"up_arrow" | |
} | |
], | |
"type":"basic" | |
}, | |
{ | |
"from":{ | |
"key_code":"l", | |
"modifiers":{ | |
"mandatory":[ | |
"command", | |
"control" | |
] | |
} | |
}, | |
"to":[ | |
{ | |
"key_code":"right_arrow" | |
} | |
], | |
"type":"basic" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment