Skip to content

Instantly share code, notes, and snippets.

@bookercodes
Created August 18, 2025 08:39
Show Gist options
  • Save bookercodes/ba494b91e096efd331e99a258f6520c7 to your computer and use it in GitHub Desktop.
Save bookercodes/ba494b91e096efd331e99a258f6520c7 to your computer and use it in GitHub Desktop.
{
"global": { "show_in_menu_bar": false },
"profiles": [
{
"complex_modifications": {
"parameters": { "basic.to_if_held_down_threshold_milliseconds": 1000 },
"rules": [
{
"description": "Map Command + Option + L to Fn + Control + Right Arrow",
"enabled": false,
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": { "mandatory": ["left_command", "left_option"] }
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["fn", "control", "shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": { "mandatory": ["left_command", "left_option"] }
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["control", "fn", "shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "return_or_enter",
"modifiers": { "mandatory": ["left_command", "left_option"] }
},
"to": [
{
"key_code": "c",
"modifiers": ["fn", "left_control"]
},
{
"key_code": "h",
"modifiers": ["left_option", "left_command"]
}
],
"type": "basic"
}
]
},
{
"description": "Change hyper-(jikl) to (←↑↓→) keys",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["left_command", "left_option", "left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_command", "left_option", "left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_command", "left_option", "left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_command", "left_option", "left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock → Hyper Key (⌃⌥⇧⌘) | Escape if alone | Use fn + caps lock to enable caps lock",
"manipulators": [
{
"from": { "key_code": "caps_lock" },
"to": [
{
"key_code": "left_shift",
"modifiers": ["left_command", "left_control", "left_option"]
}
],
"to_if_alone": [{ "key_code": "escape" }],
"type": "basic"
}
]
}
]
},
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment