Skip to content

douo/macism

 
 

Repository files navigation

CI

[中文]

📢 Notice / 说明: This is a forked version optimized for Popup windows (Raycast, Spotlight) without losing focus. Please read the Fork Notes (Chinese) for details on the core improvements, whitelist configuration, and performance delay adjustments.

MacOS Input Source Manager

This tool manages macOS input sources from the command line, ideal for integration with vim and emacs(e.g. sis).

macism's main advantage over other similar tools is that it can reliably select CJKV(Chinese/Japanese/Korean/Vietnamese) input source, while with other tools (such as input-source-switcher, im-select from smartim, swim), when you switch to CJKV input source, you will see that the input source icon has already changed in the menu bar, but unless you activate other applications and then switch back, the input source is actually still the same as before.

Install

You can get the executable in any of the following ways:

  • Install from brew

    brew tap laishulu/homebrew
    brew install macism
    
  • compile by yourself

    git clone https://github.com/laishulu/macism
    cd macism
    make
    
  • download the executable directly from github

Usage

Show version

macism --version

Show current input source

macism

Switch input source

Switch, with workaround for the MacOS bug

macism SOME_INPUT_SOURCE_ID

Switch, without workaround for the MacOS bug

macism SOME_INPUT_SOURCE_ID 0

Thanks

About

Reliable CLI MacOS Input Source Manager [MacOS上可靠切换输入法的命令行工具]

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 81.0%
  • Shell 12.3%
  • Makefile 6.7%