Open payne911 opened 3 years ago
Don't know if this was resolve... But you can invert right cmd and opt by using hidutil.
You can do the change permanently by creating this file with the code below. Don't forget to reboot after creating the file.
~/Library/LaunchAgents/com.local.KeyRemapping.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": 0x7000000E6,
"HIDKeyboardModifierMappingDst": 0x7000000E7
},
{
"HIDKeyboardModifierMappingSrc": 0x7000000E7,
"HIDKeyboardModifierMappingDst": 0x7000000E6
}
]}</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
The above didn't work for me. :(
This Work for me in Ventura 13.2...
Can you try this in Terminal ? This will do the same as with the script but will be lost after a reboot...
hidutil property --set '{"UserKeyMapping":
[{"HIDKeyboardModifierMappingSrc":0x7000000e7,
"HIDKeyboardModifierMappingDst":0x7000000e6},
{"HIDKeyboardModifierMappingSrc":0x7000000e6,
"HIDKeyboardModifierMappingDst":0x7000000e7}]
}'
Could anyone give me the instructions so that I could swap the
Cmd
and theOpt
buttons, but only the ones on the right side of theSpace
bar ?I've used the Keyboard System Preferences'
Key Modifiers
to invert theCmd
and theCtrl
so that I can have something closer to a Windows keyboard, but now this is the last piece of the puzzle for me to have something extremely close which will match with this keyboard layout.Thanks!