Quiet Input Method is a input method switcher on Mac OS X. It can automatically switch input method according to the application.
| Method | Command |
|---|---|
| curl | sh -c "$(curl -fsSL https://raw.githubusercontent.com/Yufeikang/quiet_input_method/master/install.sh)" |
| wget | sh -c "$(wget -O- https://raw.githubusercontent.com/Yufeikang/quiet_input_method/master/install.sh)" |
| fetch | sh -c "$(fetch -o - https://raw.githubusercontent.com/Yufeikang/quiet_input_method/master/install.sh)" |
-
Make sure
gitis installed. If it's not, please install it first. -
Open the terminal and navigate to the directory where you want to clone the project. For example:
cd ~/my_custom_directory -
Clone the project's GitHub repository using the default address:
git clone --depth=1 --branch master https://github.com/Yufeikang/quiet_input_method.gitThis will create a directory named
quiet_input_method. -
Change to the cloned directory:
cd quiet_input_method -
Use the
sedcommand to replaceSRC_DIRin thelaunch.plistfile with the current directory's value and save the file to~/Library/LaunchAgents/quiet_input_method.plist.sed -e "s/SRC_DIR/$(pwd | sed 's/\//\\\//g')/g" launch.plist > ~/Library/LaunchAgents/quiet_input_method.plist -
Use the
launchctlcommand to load thequiet_input_method.plistfile:launchctl load ~/Library/LaunchAgents/quiet_input_method.plist
After completing these steps, the quiet_input_method should be installed and configured successfully.
file ~/.quiet.json
{
"default": "abc",
"appConfig": {
"Shuangpin": [
"Telegram",
"WeChat"
],
"abc": [
"Code"
]
}
}
sh ./update.sh