Skip to content

Instantly share code, notes, and snippets.

@ZaninAndrea
Last active April 10, 2022 08:36
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 ZaninAndrea/f3c329a72ead8b431dd7c89ecb3e7582 to your computer and use it in GitHub Desktop.
Save ZaninAndrea/f3c329a72ead8b431dd7c89ecb3e7582 to your computer and use it in GitHub Desktop.
Permanently remapping of a key in MacOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.nanoant.KeyRemapping</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>
<string>--set</string>
<string>{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc": 0xff0100000010,"HIDKeyboardModifierMappingDst": 0x00070000003c}]}</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment