Skip to content

Instantly share code, notes, and snippets.

@sagarpanchal
Last active March 2, 2026 16:02
Show Gist options
  • Select an option

  • Save sagarpanchal/ca035685c85676b778e26aaa546a3013 to your computer and use it in GitHub Desktop.

Select an option

Save sagarpanchal/ca035685c85676b778e26aaa546a3013 to your computer and use it in GitHub Desktop.
Karabiner Elements (MacOS)
{
"description": "HOME/END Fixes",
"manipulators": [
{
"from": { "key_code": "home" },
"to": [{ "key_code": "left_arrow", "modifiers": ["command"] }],
"type": "basic"
},
{
"from": { "key_code": "home", "modifiers": { "mandatory": ["shift"] } },
"to": [{ "key_code": "left_arrow", "modifiers": ["command", "shift"] }],
"type": "basic"
},
{
"from": { "key_code": "end" },
"to": [{ "key_code": "right_arrow", "modifiers": ["command"] }],
"type": "basic"
},
{
"from": { "key_code": "end", "modifiers": { "mandatory": ["shift"] } },
"to": [{ "key_code": "right_arrow", "modifiers": ["command", "shift"] }],
"type": "basic"
},
{
"from": { "key_code": "home", "modifiers": { "mandatory": ["command"] } },
"to": [{ "key_code": "up_arrow", "modifiers": ["command"] }],
"type": "basic"
},
{
"from": { "key_code": "home", "modifiers": { "mandatory": ["command", "shift"] } },
"to": [{ "key_code": "up_arrow", "modifiers": ["command", "shift"] }],
"type": "basic"
},
{
"from": { "key_code": "end", "modifiers": { "mandatory": ["command"] } },
"to": [{ "key_code": "down_arrow", "modifiers": ["command"] }],
"type": "basic"
},
{
"from": { "key_code": "end", "modifiers": { "mandatory": ["command", "shift"] } },
"to": [{ "key_code": "down_arrow", "modifiers": ["command", "shift"] }],
"type": "basic"
}
]
}
{
"description": "ctrl+shift+1 - move cursor to center of screen 0 -- ctrl+shift+2 - move cursor to center of screen 1",
"manipulators": [
{
"type": "basic",
"from": { "key_code": "1", "modifiers": { "mandatory": ["left_control", "left_shift"] } },
"to": [{ "software_function": { "set_mouse_cursor_position": { "screen": 0, "x": "50%", "y": "50%" } } }]
},
{
"type": "basic",
"from": { "key_code": "2", "modifiers": { "mandatory": ["left_control", "left_shift"] } },
"to": [{ "software_function": { "set_mouse_cursor_position": { "screen": 1, "x": "50%", "y": "50%" } } }]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment