Automatically switch the input source when switching applications.
Example:
hs.loadSpoon("InputSourceSwitch")
spoon.InputSourceSwitch:setApplications({
["WeChat"] = "Pinyin - Simplified",
["Mail"] = "ABC"
})
spoon.InputSourceSwitch:start()
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/InputSourceSwitch.spoon.zip
| Signature | InputSourceSwitch.applicationMap |
|---|---|
| Type | Variable |
| Description | Mapping the application name to the input source |
| Source | Source/InputSourceSwitch.spoon/init.lua line 75 |
| Signature | InputSourceSwitch:setApplications() |
|---|---|
| Type | Method |
| Description | Set that mapping the application name to the input source |
| Parameters |
|
| Returns | |
| Source | Source/InputSourceSwitch.spoon/init.lua line 80 |
| Signature | InputSourceSwitch:start() |
|---|---|
| Type | Method |
| Description | Start InputSourceSwitch |
| Parameters |
|
| Returns | |
| Source | Source/InputSourceSwitch.spoon/init.lua line 100 |