Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
/ swim Public archive

A command line tool to switch the current input method by identifier for macOS.

License

Notifications You must be signed in to change notification settings

mitsuse/swim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swim

License Release

Switch the current input method by identifier.

Installation

Prebuilt binary is not provided. Please build from source:

git clone -b 0.4.0 https://github.com/mitsuse/swim.git && cd swim
swift build -c release
cp .build/release/swim ${YOUR_EXECUTABLE_PATH}

Usage

swim has two sub-commands: list and use.

list

This sub-command lists identifiers of available input sources on the standard output. Identifiers are separated by new line.

For example, swim list presents the following output:

com.apple.keyboardlayout.ABC
com.apple.inputmethod.Kotoeri.Japanese

If --name option is enabled, the command presents the name and the identifier of input sources with format like name (identifier):

ABC (com.apple.keyboardlayout.ABC)
Hiragana (com.apple.inputmethod.Kotoeri.Japanese)

You can filter them to present the current input source with --current option.

use

This sub-comman switch to the input method specified with the given identifier. For example, swim use com.apple.inputmethod.Kotoeri.Japanese switches the current input source to Japanese. If the given identifier is invalid or unavailable, the command exits with unavailableSource (exit code: 65).

License

The content of this repository are licensed under the MIT License unless otherwise noted. Please read LICENSE for the detail.

About

A command line tool to switch the current input method by identifier for macOS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages