only using a single modifier key as a trigger?

Strange, now that i typed in your command, it works flawlessly!

Ohh, its probably because i copied the command in my Apple Notes (which most likely changed the formatting of the quotes!

Thank you so much!

Yep, I generally recommend to turn off the stupid macOS smart quote feature, it has never done anything useful for me :slight_smile:

(or set it to use " as default)

1 Like

Hi Andreas, the terminal command you provided has worked like an absolute charm for the past months, thanks again!

However, stupid apple introduced a bug with Mac OS 14.2.1/13.6.3 where the hidutil did not change the user keymapping anymore, no matter what.

But i found a thread on reddit, where they said, 14.3/13.6.4 "fixed" the bug, but now you have to run this command as root/sudo.

But when i put a sudo before this command and type in my admin password (in the normal terminal app), nothing changes...

Here is the command again, that should switch the ctrl and
"<" keys :

sudo /usr/bin/hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x7000000E0},
{"HIDKeyboardModifierMappingSrc":0x7000000E0,"HIDKeyboardModifierMappingDst":0x700000035}]}'

Would mean the world if you could take a look!!

I dont know if one is allowed to post links here, but this is the reddit thread i mentioned:

https://www.reddit.com/r/MacOS/comments/18g4vxn/cannot_remap_keys_on_macbook_pro_with_hidutils_in/?sort=new

Anyone?

Are you really sure you updated to 14.3?
This was broken on all 14.2 builds, but for me it is working fine on 14.3 - however it is a bit sad that it now requires sudo to be used.

Oh sorry, my mistake, i am actually on 13.6.4 (because of other compatibility needs). Any hope for 13.6.4?

Unfortunately I don't know ;-( I haven't tried with that macOS version but if it doesn't work there is probably not much you can do.

In that case I would recommend to use Karabiner Elements to remap the key.

1 Like

Thanks for the tip, will try that! But is the sudo command from above theoretically correct?

yes, on 14.3 that exact command works fine

1 Like

Good to know, thank you!