Skip to content

Instantly share code, notes, and snippets.

@wtfaremyinitials
Created April 13, 2019 20:48
Show Gist options
  • Save wtfaremyinitials/e97028f47ebac29547179f62863a3f7c to your computer and use it in GitHub Desktop.
Save wtfaremyinitials/e97028f47ebac29547179f62863a3f7c to your computer and use it in GitHub Desktop.
# run at login with `sudo defaults write com.apple.loginwindow LoginHook path/to/caps_to_esc.sh`
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}' > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment