Control input method switching from command-line on macOS
Handle input method in command-line
fcitx-remote
$ fcitx-remote -l
$ fcitx-remote -s 1
$ fcitx-remote -i