Advertisement
Guest User

Untitled

a guest
Apr 26th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <!--
  2. Put this file in ~/Library/LaunchAgents/com.example.KeyRemapping.plist to
  3. automatically remap your keys when macOS starts.
  4. See https://developer.apple.com/library/archive/technotes/tn2450/_index.html for
  5. the key "usage IDs". Take the usage ID and add 0x700000000 to it before putting it
  6. into a source or destination (HIDKeyboardModifierMappingSrc and
  7. HIDKeyboardModifierMappingDst respectively).
  8. -->
  9. <?xml version="1.0" encoding="UTF-8"?>
  10. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  11. <plist version="1.0">
  12. <dict>
  13. <key>Label</key>
  14. <string>com.example.KeyRemapping</string>
  15. <key>ProgramArguments</key>
  16. <array>
  17. <string>/usr/bin/hidutil</string>
  18. <string>property</string>
  19. <string>--set</string>
  20. <string>{"UserKeyMapping":[
  21. {
  22. "HIDKeyboardModifierMappingSrc": 0x7000000E7,
  23. "HIDKeyboardModifierMappingDst": 0x7000000E6
  24. }
  25. ]}</string>
  26. </array>
  27. <key>RunAtLoad</key>
  28. <true/>
  29. </dict>
  30. </plist>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement