Skip to content

Instantly share code, notes, and snippets.

@Morid1n
Created January 30, 2024 10:24
Show Gist options
  • Select an option

  • Save Morid1n/1838061a34495fbf1d730be452131fd5 to your computer and use it in GitHub Desktop.

Select an option

Save Morid1n/1838061a34495fbf1d730be452131fd5 to your computer and use it in GitHub Desktop.
com.moridin.moridin_mac_keyboard_remap_v2.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.moridin.moridin_mac_keyboard_remap_v2</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>
<string>--set</string>
<string>{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc": 0x7000000e7,
"HIDKeyboardModifierMappingDst": 0x7000000e6
},
{
"HIDKeyboardModifierMappingSrc": 0x7000000e6,
"HIDKeyboardModifierMappingDst": 0x7000000e7
},
{
"HIDKeyboardModifierMappingSrc": 0x700000039,
"HIDKeyboardModifierMappingDst": 0x7000000e0
}
]}</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
@Morid1n

Morid1n commented Jan 30, 2024

Copy link
Copy Markdown
Author

Rename file and move file into ~/Library/LaunchAgents. / Zmień nazwę pliku i przenieś do ~/Library/LaunchAgents.

0x7000000e7 = Right Command
0x7000000e6 = Right Alt/Option
0x700000039 = Caps Lock
0x7000000e0 = Left Control

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