Forked from gordey4doronin/replace-paragraph-and-tilda.sh
Created
March 18, 2021 12:06
-
-
Save idanci/e9bfa7edc214456b4e988292fb641e14 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 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
#!/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 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
#!/bin/sh | |
# Removes any remappings and resets back to initial state just by passing an empty array | |
hidutil property --set '{"UserKeyMapping":[]}' |
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
#!/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} | |
]}' |
Author
idanci
commented
Mar 18, 2021
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment