Last active
May 15, 2021 09:02
-
-
Save gordey4doronin/2680280ea2af0b1a95fa9e560a6968f1 to your computer and use it in GitHub Desktop.
Remap Tilda and Paragraph buttons on a macbook keyboard https://apple.stackexchange.com/a/374074/351784
This file contains 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
#!/bin/sh | |
# Replaces tilda with left shift (literally making left shift button "longer") | |
# Replaces paragraph with tilda (so your tilda is in top left corner under escape now) | |
hidutil property --set '{"UserKeyMapping":[ | |
{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x7000000E1}, | |
{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035} | |
]}' |
This file contains 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
#!/bin/sh | |
# Removes any remappings and resets back to initial state just by passing an empty array | |
hidutil property --set '{"UserKeyMapping":[]}' |
This file contains 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
#!/bin/sh | |
# Swaps paragraph and tilda (so your tilda is in top left corner under escape now and paragraph is on the left from z) | |
hidutil property --set '{"UserKeyMapping":[ | |
{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064}, | |
{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035} | |
]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment