Skip to content

Instantly share code, notes, and snippets.

@Grabber
Last active November 9, 2022 21:35
Show Gist options
  • Save Grabber/ee124e7dc8677ea2dad905f0af6bd2c3 to your computer and use it in GitHub Desktop.
Save Grabber/ee124e7dc8677ea2dad905f0af6bd2c3 to your computer and use it in GitHub Desktop.
Keychron: how to remap and swap "§±" and "`~" keys on UK layout

As the Keychron K3 keyboard with UK layout has the great L-shaped ENTER key but the uncomfortable placed "§±" and "`~" keys, here is a solution to swap both keys without any third party software on OSX.

hidutil property --set '{
  "UserKeyMapping":[
    {
      "HIDKeyboardModifierMappingSrc":0x700000035,
      "HIDKeyboardModifierMappingDst":0x700000064
    },
    {
      "HIDKeyboardModifierMappingSrc":0x700000064,
      "HIDKeyboardModifierMappingDst":0x700000035
    }]
}'

REVERSE

hidutil property --set '{
  "UserKeyMapping":[
    {
      "HIDKeyboardModifierMappingSrc":0x700000064,
      "HIDKeyboardModifierMappingDst":0x700000035
    },
    {
      "HIDKeyboardModifierMappingSrc":0x700000035,
      "HIDKeyboardModifierMappingDst":0x700000064

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