curl -s -L https://cdn.psknv.ru/code/fix-layout.sh | bash
or
curl -s -L https://gist.githubusercontent.com/antonydevanchi/8cbaf786593067a5c88ebe3db3b6ad2f/raw/39b3a834688ede991dde31bf2c2e107fab3afb01/fix-layout.sh | bash
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AppleCurrentKeyboardLayoutInputSourceID</key> | |
<string>org.sil.ukelele.keyboardlayout.t.english-ilyabirmantypography</string> | |
<key>AppleEnabledInputSources</key> | |
<array> | |
<dict> | |
<key>Bundle ID</key> | |
<string>com.apple.CharacterPaletteIM</string> | |
<key>InputSourceKind</key> | |
<string>Non Keyboard Input Method</string> | |
</dict> | |
<dict> | |
<key>Bundle ID</key> | |
<string>com.apple.inputmethod.EmojiFunctionRowItem</string> | |
<key>InputSourceKind</key> | |
<string>Non Keyboard Input Method</string> | |
</dict> | |
<dict> | |
<key>Bundle ID</key> | |
<string>com.apple.PressAndHold</string> | |
<key>InputSourceKind</key> | |
<string>Non Keyboard Input Method</string> | |
</dict> | |
<dict> | |
<key>InputSourceKind</key> | |
<string>Keyboard Layout</string> | |
<key>KeyboardLayout ID</key> | |
<integer>-31553</integer> | |
<key>KeyboardLayout Name</key> | |
<string>Russian - Ilya Birman Typography</string> | |
</dict> | |
<dict> | |
<key>InputSourceKind</key> | |
<string>Keyboard Layout</string> | |
<key>KeyboardLayout ID</key> | |
<integer>151</integer> | |
<key>KeyboardLayout Name</key> | |
<string>English - Ilya Birman Typography</string> | |
</dict> | |
</array> | |
<key>AppleInputSourceHistory</key> | |
<array> | |
<dict> | |
<key>InputSourceKind</key> | |
<string>Keyboard Layout</string> | |
<key>KeyboardLayout ID</key> | |
<integer>151</integer> | |
<key>KeyboardLayout Name</key> | |
<string>English - Ilya Birman Typography</string> | |
</dict> | |
<dict> | |
<key>InputSourceKind</key> | |
<string>Keyboard Layout</string> | |
<key>KeyboardLayout ID</key> | |
<integer>-31553</integer> | |
<key>KeyboardLayout Name</key> | |
<string>Russian - Ilya Birman Typography</string> | |
</dict> | |
</array> | |
<key>AppleSelectedInputSources</key> | |
<array> | |
<dict> | |
<key>Bundle ID</key> | |
<string>com.apple.inputmethod.EmojiFunctionRowItem</string> | |
<key>InputSourceKind</key> | |
<string>Non Keyboard Input Method</string> | |
</dict> | |
<dict> | |
<key>Bundle ID</key> | |
<string>com.apple.PressAndHold</string> | |
<key>InputSourceKind</key> | |
<string>Non Keyboard Input Method</string> | |
</dict> | |
<dict> | |
<key>InputSourceKind</key> | |
<string>Keyboard Layout</string> | |
<key>KeyboardLayout ID</key> | |
<integer>151</integer> | |
<key>KeyboardLayout Name</key> | |
<string>English - Ilya Birman Typography</string> | |
</dict> | |
</array> | |
</dict> | |
</plist> |
#!/usr/bin/env bash | |
set -x | |
cp ~/Library/Preferences/com.apple.HIToolbox.plist ~/_com.apple.HIToolbox.plist | |
curl -sLo /tmp/com.apple.HIToolbox.plist https://gist.githubusercontent.com/antonydevanchi/8cbaf786593067a5c88ebe3db3b6ad2f/raw/fe83711a46a9a39a4a76bfd05afb1445b44368bb/com.apple.HIToolbox.plist | |
plutil -convert binary1 /tmp/com.apple.HIToolbox.plist | |
rm -f ~/Library/Preferences/com.apple.HIToolbox.plist | |
cp /tmp/com.apple.HIToolbox.plist ~/Library/Preferences/com.apple.HIToolbox.plist |