im-config command
觀看 help
執行
$ im-config --help
或是執行
$ im-config -h
顯示
Input Method Configuration (im-config, ver. 0.29-1ubuntu12)
(c) Osamu Aoki <osamu@debian.org>, GPL-2+
See im-config(8), /usr/share/doc/im-config/README.Debian.gz.
註: 其實並沒有上面兩個參數「-h」和「--help」,請參考下面的 manpage
觀看 manpage
執行
$ man im-config
會看到說明
查詢 im-config 放在那個位置
執行
$ whereis im-config
顯示
im-config: /usr/bin/im-config /usr/share/im-config /usr/share/man/man8/im-config.8.gz
查詢 im-config 屬於那個套件
執行
$ dpkg -S /usr/bin/im-config
顯示
im-config: /usr/bin/im-config
表示「/usr/bin/im-config」是屬於「im-config」這個套件。
使用範例
顯示目前有那些輸入法框架
執行
$ im-config -l
顯示
fcitx maliit xim
顯示輸入法框架的資訊
執行
$ im-config -o fcitx
顯示
Flexible Input Method Framework (fcitx)
* Required for all: fcitx
* Language specific input conversion support:
* Simplified Chinese: fcitx-pinyin or fcitx-sunpinyin or fcitx-googlepinyin
* Generic keyboard translation table: fcitx-table* packages
* Application platform support:
* GNOME/GTK+: fcitx-frontend-gtk2 and fcitx-frontend-gtk3 (both)
* KDE/Qt4: fcitx-frontend-qt4
設定預定使用輸入法框架
執行
$ im-config -n fcitx
會寫入「~/.xinputrc」這個檔
執行
$ cat ~/.xinputrc
顯示
# im-config(8) generated on Wed, 08 Jun 2016 08:38:48 +0800
run_im fcitx
# im-config signature: 358acb003c95fc3a83e18c2a3a93799a -
注意:
若是手動改了「~/.xinputrc」這個檔,
執行「im-config -n fcitx」
會顯示「E: Configuration in /home/user/.xinputrc is manually managed. Doing nothing.」
只要把「~/.xinputrc」這個檔刪除,就可以再次執行「im-config -n fcitx」。
顯示目前的設定
執行
$ im-config -m
顯示
default
fcitx
fcitx
fcitx
對照「man im-config」的說明。
-m List configuration values to STDOUT:
· active configuration (system)
· active configuration (user)
· automatic configuration for the current locale
· override configuration for the current locale
· automatic configuration for most locales
If the active configuration is custom, the user made a custom configuration and im-config should not
change it.