Skip to content

Instantly share code, notes, and snippets.

@fgeller
Last active January 28, 2017 21:37
Show Gist options
  • Save fgeller/6135dd53788fb0d67f2d0b178b7feea1 to your computer and use it in GitHub Desktop.
Save fgeller/6135dd53788fb0d67f2d0b178b7feea1 to your computer and use it in GitHub Desktop.
return / control remapping with forked karabiner elements
Via https://github.com/tekezo/Karabiner-Elements/pull/247#issuecomment-265033986
Download & install https://github.com/wwwjfy/Karabiner-Elements/releases/tag/0.90.83
To remap caps lock and return to control and return when pressed alone
Edit ~/.config/karabiner/karabiner.json to include
{
"global": {
"check_for_updates_on_startup": false,
"show_in_menu_bar": true
},
"profiles": [
{
"devices": [],
"fn_function_keys": {
"f1": "display_brightness_decrement",
"f10": "mute",
"f11": "volume_decrement",
"f12": "volume_increment",
"f2": "display_brightness_increment",
"f3": "mission_control",
"f4": "launchpad",
"f5": "illumination_decrement",
"f6": "illumination_increment",
"f7": "rewind",
"f8": "play_or_pause",
"f9": "fastforward"
},
"name": "Default profile",
"selected": true,
"simple_modifications": {
"caps_lock": "left_control",
"return_or_enter": "right_control"
},
"standalone_keys": {
"caps_lock": "return_or_enter",
"return_or_enter": "return_or_enter"
},
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 150,
"keyboard_type": "ansi",
"standalone_keys_delay_milliseconds": 150
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment