Forked from chuyeow/com.example.KeyRemapping.plist
Last active
September 4, 2020 09:16
-
-
Save macx/d9a42e2294918e12373ba3f38a178daa to your computer and use it in GitHub Desktop.
macOS key remapping
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
<!-- | |
Simple Key Remapping for maxOS | |
Based on an article from Chu Yenow: | |
https://blog.codefront.net/2020/06/24/remapping-keys-on-macos | |
Create a LaunchAgent to automatically remap your keys when maxOS starts: | |
https://hidutil-generator.netlify.app/ | |
and put this file an ~/Library/LaunchAgents/com.example.KeyRemapping.plist. to | |
automatically remap your keys when macOS starts. | |
maxOS Feature: | |
https://developer.apple.com/library/archive/technotes/tn2450/_index.html | |
--> | |
<?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.example.KeyRemapping</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/hidutil</string> | |
<string>property</string> | |
<string>--set</string> | |
<string>{"UserKeyMapping":[ | |
{ | |
"HIDKeyboardModifierMappingSrc": 0x700000039, | |
"HIDKeyboardModifierMappingDst": 0x70000006D | |
} | |
]}</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