Skip to content

Instantly share code, notes, and snippets.

@NeoHBz
Last active August 20, 2022 17:17
Show Gist options
  • Save NeoHBz/0d16e32cef118122622e9cc1b53ad49b to your computer and use it in GitHub Desktop.
Save NeoHBz/0d16e32cef118122622e9cc1b53ad49b to your computer and use it in GitHub Desktop.
Command to Remap F4 and F5 keys to control keyboard brightness on newer MacBook models, no reboot required.
hidutil property --set '{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc": 0xC00000221,
"HIDKeyboardModifierMappingDst": 0xFF00000009
},
{
"HIDKeyboardModifierMappingSrc": 0xC000000CF,
"HIDKeyboardModifierMappingDst": 0xFF00000008
}
]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment