Skip to content

Instantly share code, notes, and snippets.

@kuba--
Created January 24, 2024 17:58
Show Gist options
  • Save kuba--/857993631dd777f55f5ef04f44b0a409 to your computer and use it in GitHub Desktop.
Save kuba--/857993631dd777f55f5ef04f44b0a409 to your computer and use it in GitHub Desktop.
OSX Key Mapping
on run {input, parameters}
do shell script "hidutil property --set '{\"UserKeyMapping\":[{\"HIDKeyboardModifierMappingSrc\":0x700000064,\"HIDKeyboardModifierMappingDst\":0x700000035}]}'" with administrator privileges
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment