Skip to content

Instantly share code, notes, and snippets.

@hrom512
Created May 25, 2021 08:33
Show Gist options
  • Save hrom512/2d0c3ac92064c414df3bbd89fe410aa8 to your computer and use it in GitHub Desktop.
Save hrom512/2d0c3ac92064c414df3bbd89fe410aa8 to your computer and use it in GitHub Desktop.
Remap keys on MacOS for European keyboard
# https://developer.apple.com/library/archive/technotes/tn2450/_index.html
# 0xE1 - Left Shift
# 0x35 - ` and ~
# 0x64 - § and ±
# ± => ~
# ~ => left shift
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x7000000E1},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment