How can I change my fcitx input method from the terminal?

Josh

I am looking for a way to change the fcitx input method using a terminal command. I know I can use the hotkeys, but for the purposes of an application I am writing, I need to use a command (something similar to ibus engine [name] for ibus). I've been looking through the fcitx documentation, but haven't found anything. Anyone know of a command? Thanks!

Ohad Livne Bar-On

The appropriate command is fcitx-remote -s <imname>, where <imname> is of course the name fcitx uses to refer to the input method. Sadly, these names are not documented either, but you can find them in your fcitx configuration file (in my system, it's ~/.config/fcitx/profile), where there's a list of all the enabled (also, all disabled) input methods.

In particular, the names for xkb layouts go something like fcitx-keyboard-XYZ. For example fcitx-keyboard-us for the US English QWERTY layout, or fcitx-keyboard-de-dvorak for a German Dvorak layout. As another example, the Mozc Japanese IM is called simply mozc.

The current input method (the equivalent of ibus engine without parameters) can be obtained from the same file, in the line that says IMName=<imname>. Be aware, however, that the scope of this variable depends on whether you share the state between windows or not, and on whether fcitx is active (the result of running fcitx-remote).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Why can not I use fcitx input method in gnome-terminal?

How can I change the theme of my Hyper Terminal (downloaded from hyper.is)?

How can I detect for input on my "Terminal" like html script?

In 'sudo gedit' I can not use Ctrl Space to activate fcitx input method

How can I change the startup directory of my Terminal on OS X?

How can I change the color of my cursor in gnome-terminal?

How can I change $ to > in terminal?

why can't I write to the standard input of my terminal device from another terminal

How can I input to a file directly from the terminal

How can I stop the terminal from asking for more pipe input?

How can I change my code into clickable row from input checkbox row in jquery?

How can I change the placeholder color from my el-input with Element UI

How can I pause my threaded game in java, Using a toggle method from key input?

How can i call my method from class using user input?

How can I change sound theme from terminal?

android:How can I change My Background color from method outside class

How can I find my User ID (UID) from terminal?

How can i debug my code from the terminal?

How can I check my favorated commands from the terminal?

How can I update my languages from the terminal?

How can I prevent my terminal from breaking?

How can I disable my internet connection from terminal?

How can I get a variable from terminal to use it in my script?

How can I remove directory or uninstall homebrew from my terminal?

How do I toggle to katakana input from hiragana with fcitx-mozc text entry? (16.04)

How can I use the Linux CLI to change keyboard input method?

How can I get Octave to change the variables in my input files?

How can i change my non input tag in react?

How can I make this function change my input's value?