Skip to content

Instantly share code, notes, and snippets.

@vcaen
Created November 3, 2018 18:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vcaen/2d4e48a632538c51a69aa7c663c8cdb1 to your computer and use it in GitHub Desktop.
Save vcaen/2d4e48a632538c51a69aa7c663c8cdb1 to your computer and use it in GitHub Desktop.
Mac remap § to ESC
#!/bin/bash
function keymapRemap() {
hidutil property --set '{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc":0x700000064,
"HIDKeyboardModifierMappingDst":0x700000029
}
]}'
}
function keymapReset() {
hidutil property --set '{"UserKeyMapping":[]}'
}
@se-security
Copy link

Great stuff THANX!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment