Created
December 1, 2022 10:51
-
-
Save vslala/0e9962bcb847364363855407ab956bb1 to your computer and use it in GitHub Desktop.
This is to replace tilde key (~) with (§) in new mac keyboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat << 'EOF' > ~/.tilde-switch && chmod +x ~/.tilde-switch | |
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}' | |
EOF | |
sh .tilde-switch | |
# To revert back, run the following: | |
# hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000035},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000064}]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No longer works with the latest update. any fixes pls?