Remapping keys

Sometimes keys annoy you and you keep typing incorrectly, e.g. from being used to a Windows keyboard or similar.

Plus CAPS LOCK is pointless.

In my case I kept hitting right alt instead of right command. So I made right alt to also be a command key.

hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x7000000E6,"HIDKeyboardModifierMappingDst":0x7000000E7}]}'

That's all it takes.

List of keys here:

https://developer.apple.com/library/archive/technotes/tn2450/_index.html#//apple_ref/doc/uid/DTS40017618-CH1-TNTAG8

Command syntax is here:

https://developer.apple.com/library/archive/technotes/tn2450/_index.html


Popular posts from this blog

Chunk validation failed

The most useful defaults-write options

Erasing firmware password