Skip to content

Instantly share code, notes, and snippets.

@dat-boris
Created September 17, 2020 03:58
Show Gist options
  • Save dat-boris/3850e485003fe11201e553e4218bebf0 to your computer and use it in GitHub Desktop.
Save dat-boris/3850e485003fe11201e553e4218bebf0 to your computer and use it in GitHub Desktop.
For mac. use this to remap keys
# Remap F1 to backtick (my backtick is broken, use F1 instead)
# https://apple.stackexchange.com/questions/283252/how-do-i-remap-a-key-in-macos-sierra-e-g-right-alt-to-right-control
# https://developer.apple.com/library/archive/technotes/tn2450/_index.html
hidutil property --set '{"UserKeyMapping":
[{"HIDKeyboardModifierMappingSrc":0x70000003a,
"HIDKeyboardModifierMappingDst":0x700000035}]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment