Last active
August 16, 2024 13:27
-
-
Save jasonwaters/e458eb719f846455f6b9ad32e608c4d1 to your computer and use it in GitHub Desktop.
Remap the home and end keys in macOS using Karabiner Elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rules": [ | |
{ | |
"description": "change home key to command + left_arrow", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "home" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "change home key to command + left_arrow while presing shift (selection)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_command", | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "change end key to command + right_arrow", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "end" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "change end key to command + right_arrow while presing shift (selection)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command", | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not seem to work in version 15.0