All Projects → daipeihust → Im Select

daipeihust / Im Select

Licence: mit
Switch your input method through terminal 📟

Projects that are alternatives of or similar to Im Select

Nord Iterm2
An arctic, north-bluish clean and elegant iTerm2 color scheme.
Stars: ✭ 651 (+126.04%)
Mutual labels:  terminal, mac
Glorious Demo
The easiest way to demonstrate your code in action.
Stars: ✭ 3,290 (+1042.36%)
Mutual labels:  terminal, mac
Wechatcmd
提供微信终端版本、微信命令行版本聊天功能、微信机器人
Stars: ✭ 628 (+118.06%)
Mutual labels:  terminal, mac
Blightmud
A terminal mud client written in Rust
Stars: ✭ 61 (-78.82%)
Mutual labels:  terminal, mac
Reminders Cli
Command-line interface to interact with the Reminders.app
Stars: ✭ 67 (-76.74%)
Mutual labels:  terminal, mac
Mac Keyboard Brightness
🔆 Programmatically get & set the keyboard & display backlight brightness on Macs. Flash your keyboard to the music! (only works on <2015 Macs)
Stars: ✭ 185 (-35.76%)
Mutual labels:  terminal, mac
Mac Zsh Completions
macOS specific additional completion definitions for Zsh.
Stars: ✭ 79 (-72.57%)
Mutual labels:  terminal, mac
Mac Setup
🛠️ Front end web development setup for macOS.
Stars: ✭ 265 (-7.99%)
Mutual labels:  terminal, mac
Progress bar
Command-line progress bars and spinners for Elixir.
Stars: ✭ 281 (-2.43%)
Mutual labels:  terminal
Terminal Snazzy
Elegant Terminal theme with bright colors
Stars: ✭ 287 (-0.35%)
Mutual labels:  terminal
Crack Edition Software For Mac
(各类破解版Mac软件,客官进来看看有没有需要的,欢迎提交Issues,我会在第一时间为你更新)Collect all kinds of Mac cracking software and keep updating. If you do not find the software you need, please submit it in Issues and I will complete it the first time. If it helps you, take a like.~
Stars: ✭ 280 (-2.78%)
Mutual labels:  mac
Cryptowatch
🐦 Cryptocurrency price and account balance monitor
Stars: ✭ 283 (-1.74%)
Mutual labels:  terminal
Easydockerweb
A simple Web Ui for Docker using xterm.js, Node.js, dockerode and Socket.io
Stars: ✭ 288 (+0%)
Mutual labels:  terminal
Yonce
👑 Queen Bey-inspired themes for all your favs.
Stars: ✭ 280 (-2.78%)
Mutual labels:  terminal
Macdriver
Native Mac APIs for Go
Stars: ✭ 3,582 (+1143.75%)
Mutual labels:  mac
Teip
Select partial standard input and replace with the result of another command efficiently
Stars: ✭ 280 (-2.78%)
Mutual labels:  terminal
Eiskaltdcpp
File sharing program using DC and ADC protocols
Stars: ✭ 277 (-3.82%)
Mutual labels:  mac
Theme.sh
A script which lets you set your $terminal theme.
Stars: ✭ 290 (+0.69%)
Mutual labels:  terminal
Consola
Elegant Console Logger for Node.js and Browser 🐨
Stars: ✭ 3,461 (+1101.74%)
Mutual labels:  terminal
Nestjs Console
A nestjs module that provide a cli to your application.
Stars: ✭ 284 (-1.39%)
Mutual labels:  terminal

im-select

Switch your input method from terminal. This project is a basic support for VSCodeVim. It provides the command line program for VSCodeVim's autoSwitchIM function

Installation

macOS

Run following command in your terminal:

curl -Ls https://raw.githubusercontent.com/daipeihust/im-select/master/install_mac.sh | sh

The im-select program will be downloaded to your /usr/local/bin/ path.

windows

Download the im-select.exe, and move it to the proper path.(If you need the 64 bit version, you can download this one.)

linux

You don't have to install this for linux. linux have tools to switch input methods

Usage

macOS

If your PATH contains /usr/local/bin, you can just use im-select instead of /usr/local/bin/im-select

To get current input method key

/usr/local/bin/im-select

To switch current input method

/usr/local/bin/im-select imkey

For example /usr/local/bin/im-select com.apple.keylayout.US

linux

ibus

@mengbo provided this configuration for ibus

"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "xkb🇺🇸:eng",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/ibus engine",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/ibus engine {im}"

xkb-switch

@VEL4EG provided this configuration for xkb-switch

"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "us",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/local/bin/xkb-switch",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/xkb-switch -s {im}"

fcitx

@yunhao94 provided this configuration for fcitx

"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "1",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/fcitx-remote",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/fcitx-remote -t {im}",

gdbus

@d-r-q

Put gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().currentSource.index" | awk -F'[^0-9]*' '{print $2}' into get-im.sh.

Put gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[$1].activate()" into set-im.sh.

"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "0",
"vim.autoSwitchInputMethod.obtainIMCmd": "<path to get-im.sh>",
"vim.autoSwitchInputMethod.switchIMCmd": "<path to set-im.sh> {im}",

windows

The im-select.exe is command line program, but it can't work in cmd or powershell. It's microsoft's fault, the keyboard API doesn't support in cmd and powershell. I recommend you git-bash.

Note: The git-bash is not required. It's only used to get current input method key, which needed in VSCodeVim's configuration.

To get current keyboard locale

/path/to/im-select.exe

To switch current keyboard locale

/path/to/im-select.exe locale

Note: The path in windows is like: C:\Users\path\to\file

Contact & Support

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].