This hidutil command remaps the following keys on the internal MacBook Pro keyboard:
- caps lock is remapped to esc
- right command is remapped to right option
- right option is remapped to right ctrl
I use these remappings because I spend most of my time working in the terminal or in Emacs, so having an extra command key is less important to me than having symmetric left/right ctrl and option keys.
To use com.local.KeyRemapping.plist
, place it in ~/Library/LaunchAgents/