Skip to content

Instantly share code, notes, and snippets.

Last active Nov 4, 2021
What would you like to do?
M1 MacBook Air F5 & F6 KeyRemap

## xref:

cat > ~/Library/LaunchAgents/com.local.KeyRemapping.plist << EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
              "HIDKeyboardModifierMappingSrc": 0xC000000CF,
              "HIDKeyboardModifierMappingDst": 0xFF00000009
              "HIDKeyboardModifierMappingSrc": 0x10000009B,
              "HIDKeyboardModifierMappingDst": 0xFF00000008

launchctl load ~/Library/LaunchAgents/com.local.KeyRemapping.plist


launchctl unload ~/Library/LaunchAgents/com.local.KeyRemapping.plist
rm -f ~/Library/LaunchAgents/com.local.KeyRemapping.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment