Skip to content

Instantly share code, notes, and snippets.

@kotano
Last active February 10, 2023 08:15
Show Gist options
  • Save kotano/a5137a2d516bc7fa0e09d48bbfb2e8cd to your computer and use it in GitHub Desktop.
Save kotano/a5137a2d516bc7fa0e09d48bbfb2e8cd to your computer and use it in GitHub Desktop.
My karabiner elements modifications
{
"title": "Caps Lock (Fn) + IJKL",
"rules": [
{
"description": "Caps Lock to Fn",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn"
}
]
}
]
},
{
"description": "Fn + I/J/K/L to Arrow Keys",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "Fn + H to Delete",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
]
}
]
},
{
"description": "Fn + Space to Mouse Click",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
}
},
"to": [
{
"pointing_button": "button1"
}
]
}
]
},
{
"description": "Disable arrows",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_arrow"
},
"to": [
{
"key_code": "vk_none"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_arrow"
},
"to": [
{
"key_code": "vk_none"
}
]
},
{
"type": "basic",
"from": {
"key_code": "up_arrow"
},
"to": [
{
"key_code": "vk_none"
}
]
},
{
"type": "basic",
"from": {
"key_code": "down_arrow"
},
"to": [
{
"key_code": "vk_none"
}
]
}
]
},
{
"description": "Disable Delete",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "delete_or_backspace"
},
"to": [
{
"key_code": "vk_none"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment