Skip to content

Instantly share code, notes, and snippets.

@huytd huytd/karabiner.json
Last active Mar 29, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.