Skip to content

Instantly share code, notes, and snippets.

@noir-neo
Last active November 18, 2018 16:28
Show Gist options
  • Select an option

  • Save noir-neo/405a87604f08db3a15bb016deabccbc7 to your computer and use it in GitHub Desktop.

Select an option

Save noir-neo/405a87604f08db3a15bb016deabccbc7 to your computer and use it in GitHub Desktop.
karabiner settings
{
"title": "Change right_command+ijkl to arrow keys",
"rules": [
{
"description": "Change right_command+ijkl to arrow keys",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
}
]
}
{
"title": "Vim style escape key mapping",
"rules": [
{
"description": "Map ctrl + j to escape",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "escape"
}
]
}
]
}
]
}
{
"title": "emacs style key mapping",
"rules": [
{
"description": "Map ctrl + h to backspace",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
]
}
]
},
{
"description": "Map ctrl + m to return",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "return_or_enter"
}
]
}
]
}
]
}
{
"title": "Override SandS",
"rules": [
{
"description": "Override command + space",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "spacebar",
"modifiers": ["right_command"]
}
]
}
]
},
{
"description": "Override command + option",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": ["option"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "spacebar",
"modifiers": ["option"]
}
]
}
]
}
]
}
@noir-neo
Copy link
Author

ln -snfv pwd ~/.config/karabiner/assets/complex_modifications

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