←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.398s | source
Show context
BruceEel ◴[] No.36492319[source]
Nice list.

Also, hidutil (https://developer.apple.com/library/archive/technotes/tn2450...).

Example:

     hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000049,"HIDKeyboardModifierMappingDst":0x700000065}]}'
For my PC keyboard, remaps "Ins" (normally useless under macOS) to something ("PC Execute") I can trap and remap with Keyboard Maestro.
replies(3): >>36492415 #>>36492826 #>>36493561 #
frankjr ◴[] No.36493561[source]
There's a nice generator for these mappings https://hidutil-generator.netlify.app/
replies(1): >>36512367 #
1. xiaomai ◴[] No.36512367[source]
Oh wow, this is amazing. I had been unable to _swap_ esc and caps lock on the mac until now.