Skip to content

Instantly share code, notes, and snippets.

@huytd
Last active March 29, 2019 01:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huytd/69fd6a7f5f421980f87d02ec2a8d64a8 to your computer and use it in GitHub Desktop.
Save huytd/69fd6a7f5f421980f87d02ec2a8d64a8 to your computer and use it in GitHub Desktop.
Custom modificator for Karabiner
{
"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