Last active
June 20, 2020 03:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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