Skip to content

Instantly share code, notes, and snippets.

@Taewan-P
Created April 1, 2024 17:48
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 Taewan-P/596d17104a8851367d9c6e59dfd62f32 to your computer and use it in GitHub Desktop.
Save Taewan-P/596d17104a8851367d9c6e59dfd62f32 to your computer and use it in GitHub Desktop.
MacOS Automatic Keybinding Script on startup - Right Option to F18 Example
<?xml version="1.0" encoding="UTF-8"?>
<!--
<dict>
<key>placeThisFileAt</key>
<string>~/Library/LaunchAgents</string>
</dict>
-->
<!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>userkeymapping</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>
<string>--set</string>
<string>{"UserKeyMapping": [{"HIDKeyboardModifierMappingSrc": 0x7000000e6, "HIDKeyboardModifierMappingDst": 0x70000006d}]}</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
@Taewan-P
Copy link
Author

Taewan-P commented Apr 1, 2024

Generator: link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment