←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.237s | 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 #
maratc ◴[] No.36492415[source]

    hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
Remaps top left key on Euro-style keyboards from useless "paragraph" to useful "backtick".
replies(1): >>36494367 #
1. kevans91 ◴[] No.36494367[source]
Yes, this is great... I was given a Macbook with a Norweigan keyboard for testing a port of FreeBSD on it, and I quickly discovered that the keyboard layout remapping stuff available via the UI won't remap at least this one key to what I'd find on my US keyboard.