Last active
December 12, 2021 07:52
-
-
Save talkingmoose/861588c136f5946d6961e41c51f2cb93 to your computer and use it in GitHub Desktop.
This example adds the Latin American keyboard as an input sourcce under System Preferences > Keyboard > Input Sources. Quit and reopen System Preferences if necessary to see the change.
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/zsh | |
# adds the additional input source to the list of input sources | |
/usr/bin/defaults write com.apple.HIToolbox AppleEnabledInputSources -array-add '<dict><key>InputSourceKind</key><string>Keyboard Layout</string><key>KeyboardLayout ID</key><integer>89</integer><key>KeyboardLayout Name</key><string>Latin American</string></dict>' | |
# enables the input menu in the menu bar | |
/usr/bin/defaults write com.apple.TextInputMenu visible -bool true | |
exit 0 |
Author
talkingmoose
commented
Feb 19, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment