Skip to content

Instantly share code, notes, and snippets.

@rammanokar
Created July 23, 2022 12:43
Show Gist options
  • Save rammanokar/e771efb1195509da00e5311fc1147281 to your computer and use it in GitHub Desktop.
Save rammanokar/e771efb1195509da00e5311fc1147281 to your computer and use it in GitHub Desktop.
Swap places between tilde (~) and section sign (§) key in your macbook keyboard
hidutil property --set '
{
"UserKeyMapping": [{
"HIDKeyboardModifierMappingSrc":0x700000035,
"HIDKeyboardModifierMappingDst":0x700000064},
{"HIDKeyboardModifierMappingSrc":0x700000064,
"HIDKeyboardModifierMappingDst":0x700000035
}]
}
'
#ref: https://ppolyzos.com/2020/10/09/swap-places-between-tilde-and-section-sign-%C2%A7-key-in-your-macbook-keyboard/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment