I have a computer that I cannot download much 3rd party software to (I'm not supposed to – long story, just accept it). This means, no Karabiner, etc. Further, the generic solution of "system preferences > keyboard > modifier keys" will not work since these keys are beyond the generic keys that can be found there.

I would like to remap a few keys that are in irritating positions on certain keyboards. I understand that, according to this technical note from apple, the hidutil command should be able to do it. However, all the resources I've found are pretty hard to understand and don't seem to explain exactly what each command does.

Here's my question: can someone explain how to remap using the hidutil command.

Specifically, what is the the generic syntax and what does each part do? I don't understand what

$ hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000004,"HIDKeyboardModifierMappingDst":0x700000005},{"HIDKeyboardModifierMappingSrc":0x700000005,"HIDKeyboardModifierMappingDst":0x700000004}]}'

really does.

Further, I can't figure out how to determine which of the USB HID's is for insert. It seems like there are a lot of them. I'd like to change the function on an external keyboard that.

Finally, how do I specify the keyboard? I know the product ID is 0x07a5 and the location ID, etc., but where does this go?

I'm amenable to an applescript solution or other solutions that don't involve downloading software

Thanks in advance.

You must log in to answer this question.

Browse other questions tagged .