Skip to content

Instantly share code, notes, and snippets.

@holstvoogd
Created July 30, 2019 15:21
Show Gist options
  • Save holstvoogd/56f330168d82dd9936826876bb8c5a0b to your computer and use it in GitHub Desktop.
Save holstvoogd/56f330168d82dd9936826876bb8c5a0b to your computer and use it in GitHub Desktop.
swap crtl & fn + capslock remap
defaults -currentHost write -g com.apple.keyboard.modifiermapping.alt_handler_id-50 -array \ []
'<dict><key>HIDKeyboardModifierMappingDst</key><integer>30064771300</integer><key>HIDKeyboardModifierMappingSrc</key><integer>30064771129</integer></dict>' \
'<dict><key>HIDKeyboardModifierMappingDst</key><integer>1095216660483</integer><key>HIDKeyboardModifierMappingSrc</key><integer>30064771300</integer></dict>' \
'<dict><key>HIDKeyboardModifierMappingDst</key><integer>280379760050179</integer><key>HIDKeyboardModifierMappingSrc</key><integer>30064771296</integer></dict>' \
'<dict><key>HIDKeyboardModifierMappingDst</key><integer>30064771300</integer><key>HIDKeyboardModifierMappingSrc</key><integer>1095216660483</integer></dict>' \
'<dict><key>HIDKeyboardModifierMappingDst</key><integer>30064771296</integer><key>HIDKeyboardModifierMappingSrc</key><integer>280379760050179</integer></dict>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment