Skip to content

Instantly share code, notes, and snippets.

@vastus
Last active June 20, 2020 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vastus/428531f04ffba57d07a931847ce22cf1 to your computer and use it in GitHub Desktop.
Save vastus/428531f04ffba57d07a931847ce22cf1 to your computer and use it in GitHub Desktop.
Map caps lock to control (ctrl) on macOS 10.12 Sierra and later using hidutil
#!/bin/bash
# https://stackoverflow.com/a/46460200
hidutil property --set \
'{"UserKeyMapping": [{"HIDKeyboardModifierMappingSrc": 0x700000039, "HIDKeyboardModifierMappingDst": 0x7000000e0 }] }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment