- Copy to ~/Library/LaunchAgents/com.hidutilKeyMapping.plist
- Open System Settings > Privacy & Security > Input Monitoring and add /usr/bin/hidutil (Hint: Cmd Up will open parent folder and Cmd Shift . will reveal hidden files)
- Verify hdutil present in System Settings > General > Login Items & Extensions
Created
August 27, 2025 18:49
-
-
Save saravanabalagi/b2ae238e58de8ac814e748563e9ddcd1 to your computer and use it in GitHub Desktop.
MacOS Swap ` (tilde) and § (section) keys in UK Keyboard
This file contains hidden or 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
| <?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.local.KeyRemapping</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/bin/hidutil</string> | |
| <string>property</string> | |
| <string>--set</string> | |
| <string>{ | |
| "UserKeyMapping": [ | |
| { | |
| "HIDKeyboardModifierMappingSrc":0x700000035, | |
| "HIDKeyboardModifierMappingDst":0x700000064 | |
| }, | |
| { | |
| "HIDKeyboardModifierMappingSrc":0x700000064, | |
| "HIDKeyboardModifierMappingDst":0x700000035 | |
| } | |
| ] | |
| }</string> | |
| </array> | |
| <key>RunAtLoad</key> | |
| <true/> | |
| </dict> | |
| </plist><?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.local.KeyRemapping</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/bin/hidutil</string> | |
| <string>property</string> | |
| <string>--set</string> | |
| <string>{ | |
| "UserKeyMapping": [ | |
| { | |
| "HIDKeyboardModifierMappingSrc":0x700000035, | |
| "HIDKeyboardModifierMappingDst":0x700000064 | |
| }, | |
| { | |
| "HIDKeyboardModifierMappingSrc":0x700000064, | |
| "HIDKeyboardModifierMappingDst":0x700000035 | |
| } | |
| ] | |
| }</string> | |
| </array> | |
| <key>RunAtLoad</key> | |
| <true/> | |
| </dict> | |
| </plist> | |
| 1. Copy to ~/Library/LaunchAgents/com.hidutilKeyMapping.plist | |
| 2. Open System Settings > Privacy & Security > Input Monitoring and add /usr/bin/hidutil (Hint: Cmd Up will open parent folder and Cmd Shift . will reveal hidden files) | |
| 3. Verify hdutil present in System Settings > General > Login Items & Extensions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment