Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Last active March 30, 2025 11:05
Show Gist options
  • Save ttscoff/e230c0799334eb9b333398741f60d2c1 to your computer and use it in GitHub Desktop.
Save ttscoff/e230c0799334eb9b333398741f60d2c1 to your computer and use it in GitHub Desktop.
Collection of Karabiner rules for converting ;-hikl to arrow keys, '-hikl to fn-arrow
{
"description": "Change Left_command + Fn + J/K/I/L to Arrow Keys",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_command", "fn"],
"optional": ["any"]
}
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_command", "fn"],
"optional": ["any"]
}
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["left_command", "fn"],
"optional": ["any"]
}
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_command", "fn"],
"optional": ["any"]
}
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
}
{
"description": "Change ' to Right_command + Fn if pressed with other keys (Post ' when pressed alone)",
"manipulators": [
{
"from": {
"key_code": "quote",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "fn",
"modifiers": ["right_command"]
}
],
"to_if_alone": [{ "key_code": "quote" }],
"type": "basic"
}
]
}
{
"description": "Change Right_command + Fn + J/K/I/L to Home / Page Down / Page Up / End",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["right_command", "fn"],
"optional": ["any"]
}
},
"to": [{ "key_code": "home" }],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["right_command", "fn"],
"optional": ["any"]
}
},
"to": [{ "key_code": "page_down" }],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["right_command", "fn"],
"optional": ["any"]
}
},
"to": [{ "key_code": "page_up" }],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["right_command", "fn"],
"optional": ["any"]
}
},
"to": [{ "key_code": "end" }],
"type": "basic"
}
]
}
{
"description": "Change ; to Left_command + Fn if pressed with other keys (Post ; when pressed alone)",
"manipulators": [
{
"from": {
"key_code": "semicolon",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "fn",
"modifiers": ["left_command"]
}
],
"to_if_alone": [{ "key_code": "semicolon" }],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment