页次: 1
我在firefox以及其他一些终端(例如 deepin-terminal)上可以正常使用fcitx输入中文,但是在alacritty上,按下ctrl-space来激活输入法, 没有任何反应。
我尝试更换了其他快捷键来激活输入法,和换了不同版本的alacritty(v0.4.1,v0.4.0,v0.3.3,v0.3.2 and v0.3.1), 结果都失败了, 无法在alacritty上使用fcitx
桌面环境是xorg启动i3wm
下面是我的系统信息和配置:
zz@zz ~> screenfetch
-`
.o+` zz@zz
`ooo/ OS: Arch Linux
`+oooo: Kernel: x86_64 Linux 5.5.13-arch2-1
`+oooooo: Uptime: 1d 14h 12m
-+oooooo+: Packages: 691
`/:-:++oooo+: Shell: fish 3.1.0
`/++++/+++++++: Resolution: 1920x1080
`/++++++++++++++: WM: i3
`/+++ooooooooooooo/` GTK Theme: Numix Solarized [GTK3]
./ooosssso++osssssso+` Disk: 138G / 224G (65%)
.oossssso-````/ossssss+` CPU: Intel Core i7-8550U @ 8x 4GHz [52.0°C]
-osssssso. :ssssssso. GPU: Intel Corporation UHD Graphics 620 (rev 07)
:osssssss/ osssso+++. RAM: 1699MiB / 15899MiB
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/
[zz@zz ~]$ alacritty -V
alacritty 0.4.2
zz@zz ~> pacman -Qs fcitx
local/fcitx 4.2.9.7-2 (fcitx-im)
Flexible Context-aware Input Tool with eXtension
local/fcitx-configtool 0.4.10-3
GTK based config tool for Fcitx
local/fcitx-googlepinyin 0.1.6-6
Fcitx Wrapper for googlepinyin
local/fcitx-qt5 1.2.4-4 (fcitx-im)
Qt5 IM Module for Fcitx
zz@zz ~> sudo locale-gen
[sudo] password for zz:
Generating locales...
en_US.UTF-8... done
zh_CN.UTF-8... done
Generation complete.
zz@zz ~> cat .xinitrc
exec i3
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
zz@zz ~> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
zz@zz ~> cat .config/alacritty/alacritty.yml
font:
normal:
family: CodeNewRoman Nerd Font Mono
bold:
family: CodeNewRoman Nerd Font Mono
italic:
family: CodeNewRoman Nerd Font Mono
size: 15
offset:
x: 0
y: 0
glyph_offset:
x: 0
y: 0
background_opacity: 1.0
colors:
# Default colors
primary:
background: '0x002b36' # base03
foreground: '0x839496' # base0
# Cursor colors
cursor:
text: '0x002b36' # base03
cursor: '0x839496' # base0
# Normal colors
normal:
black: '0x073642' # base02
red: '0xdc322f' # red
green: '0x859900' # green
yellow: '0xb58900' # yellow
blue: '0x268bd2' # blue
magenta: '0xd33682' # magenta
cyan: '0x2aa198' # cyan
white: '0xeee8d5' # base2
# Bright colors
bright:
black: '0x002b36' # base03
red: '0xcb4b16' # orange
green: '0x586e75' # base01
yellow: '0x657b83' # base00
blue: '0x839496' # base0
magenta: '0x6c71c4' # violet
cyan: '0x93a1a1' # base1
white: '0xfdf6e3' # base3
zz@zz ~> fcitx-diagnose
# System Info:
1. `uname -a`:
Linux zz 5.5.13-arch2-1 #1 SMP PREEMPT Mon, 30 Mar 2020 20:42:41 +0000 x86_64 GNU/Linux
2. `lsb_release`:
`lsb_release` not found.
3. `/etc/lsb-release`:
`/etc/lsb-release` not found.
4. `/etc/os-release`:
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux
5. Desktop Environment:
Cannot determine desktop environment.
6. Bash Version:
BASH_VERSION='5.0.16(1)-release'
# Environment:
1. DISPLAY:
DISPLAY=':0'
2. Keyboard Layout:
1. `setxkbmap`:
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};
2. `xprop`:
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
3. Locale:
1. All locale:
C
en_US.utf8
POSIX
zh_CN.utf8
2. Current locale:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
4. Directories:
1. Home:
/home/zz
2. `${XDG_CONFIG_HOME}`:
Environment variable `XDG_CONFIG_HOME` is not set.
Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/zz/.config`).
3. Fcitx Settings Directory:
Current fcitx settings directory is `~/.config/fcitx` (`/home/zz/.config/fcitx`).
5. Current user:
The script is run as zz (1000).
# Fcitx State:
1. executable:
Found fcitx at `/usr/bin/fcitx`.
2. version:
Fcitx version: `4.2.9.7`
3. process:
Found 2 fcitx processes:
60852 fcitx
60877 fcitx-dbus-watc
4. `fcitx-remote`:
`fcitx-remote` works properly.
5. DBus interface:
Using `dbus-send` to check dbus.
Owner of DBus name `org.fcitx.Fcitx` is `:1.151`.
PID of DBus name `org.fcitx.Fcitx` owner is `60852`.
# Fcitx Configure UI:
1. Config Tool Wrapper:
Found fcitx-configtool at `/usr/bin/fcitx-configtool`.
2. Config GUI for gtk2:
**Config GUI for gtk2 not found.**
3. Config GUI for gtk3:
Found `fcitx-config-gtk3` at `/usr/bin/fcitx-config-gtk3`.
4. Config GUI for kde:
**`kcmshell4` not found.**
# Frontends setup:
## Xim:
1. `${XMODIFIERS}`:
**XMODIFIERS is not set**
**Please set environment variable XMODIFIERS to "@im=fcitx" using the tool your distribution provides or add `export XMODIFIERS=@im=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: XMODIFIERS](http://fcitx-im.org/wiki/Input_method_related_environment_variables#XMODIFIERS).**
Xim Server Name from Environment variable is fcitx.
2. XIM_SERVERS on root window:
Xim server name is the same with that set in the environment variable.
## Qt:
1. qt4 - `${QT4_IM_MODULE}`:
**Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add `export QT_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#QT_IM_MODULE).**
2. qt5 - `${QT_IM_MODULE}`:
**Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add `export QT_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#QT_IM_MODULE).**
3. Qt IM module files:
Found fcitx qt module: `/usr/lib/fcitx/qt/libfcitx-quickphrase-editor5.so`.
Found fcitx im module for Qt5: `/usr/lib/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
**Cannot find fcitx input method module for Qt4.**
## Gtk:
1. gtk - `${GTK_IM_MODULE}`:
**Please set environment variable GTK_IM_MODULE to "fcitx" using the tool your distribution provides or add `export GTK_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#GTK_IM_MODULE).**
2. `gtk-query-immodules`:
1. gtk 2:
Found `gtk-query-immodules` for gtk `2.24.32` at `/usr/bin/gtk-query-immodules-2.0`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.32
Found fcitx im modules for gtk `2.24.32`.
"/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so"
"fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"
2. gtk 3:
Found `gtk-query-immodules` for gtk `3.24.17` at `/usr/bin/gtk-query-immodules-3.0`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.17
Found fcitx im modules for gtk `3.24.17`.
"/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so"
"fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"
3. Gtk IM module cache:
1. gtk 2:
Found immodules cache for gtk `2.24.32` at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.32
Found fcitx im modules for gtk `2.24.32`.
"/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so"
"fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"
2. gtk 3:
Found immodules cache for gtk `3.24.17` at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.17
Found fcitx im modules for gtk `3.24.17`.
"/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so"
"fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"
3. Gtk IM module cache:
1. gtk 2:
Found immodules cache for gtk `2.24.32` at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.32
Found fcitx im modules for gtk `2.24.32`.
"/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so"
"fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"
2. gtk 3:
Found immodules cache for gtk `3.24.17` at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.17
Found fcitx im modules for gtk `3.24.17`.
"/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so"
"fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"
4. Gtk IM module files:
1. gtk 2:
All found Gtk 2 immodule files exist.
2. gtk 3:
All found Gtk 3 immodule files exist.
# Configuration:
## Fcitx Addons:
1. Addon Config Dir:
Found fcitx addon config directory: `/usr/share/fcitx/addon`.
2. Addon List:
1. Found 27 enabled addons:
fcitx-autoeng
fcitx-chttrans
fcitx-classic-ui
fcitx-clipboard
fcitx-dbus
fcitx-freedesktop-notify
fcitx-fullwidth-char
fcitx-googlepinyin
fcitx-imselector
fcitx-ipc
fcitx-ipcportal
fcitx-keyboard
fcitx-kimpanel-ui
fcitx-notificationitem
fcitx-pinyin
fcitx-pinyin-enhance
fcitx-punc
fcitx-quickphrase
fcitx-remote
fcitx-spell
fcitx-table
fcitx-unicode
fcitx-vk
fcitx-x11
fcitx-xim
fcitx-xkb
fcitx-xkbdbus
2. Found 1 disabled addons:
fcitx-qw
3. Addon Libraries:
All libraries for all addons are found.
4. User Interface:
Found 2 enabled user interface addons:
fcitx-classic-ui
fcitx-kimpanel-ui
## Input Methods:
1. Found 2 enabled input methods:
fcitx-keyboard-us
googlepinyin
2. Default input methods:
You have a keyboard input method "fcitx-keyboard-us" correctly added as your default input method.
# Log:
1. `date`:
Wed 08 Apr 2020 11:35:09 PM CST
2. `~/.config/fcitx/log/`:
total 0
3. `~/.config/fcitx/log/crash.log`:
`~/.config/fcitx/log/crash.log` not found.
各位有任何建议吗?
谢谢大家
最近编辑记录 Zonzely (2020-04-10 15:23:59)
离线
Frontends setup 那里往下看……
离线
zz@zz ~> cat .xinitrc
exec i3
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
这么经典的错误,在论坛上有好几个先例呢,你一个也没找到么?
离线
zz@zz ~> cat .xinitrc exec i3 export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx"
这么经典的错误,在论坛上有好几个先例呢,你一个也没找到么?
我把~/.xinitrc改成:
zz@zz ~> cat ~/.xinitrc
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
exec i3
然后就可以在alacritty使用fcitx了。。。非常感谢
不过为啥之前那样配置,deepin-terminal和firefox还能使用fcitx呢?
离线
不过为啥之前那样配置,deepin-terminal和firefox还能使用fcitx呢?
这些环境变量不配置的时候,fcitx 能不能在某个程序里用是不确定的。
离线
Zonzely 说:不过为啥之前那样配置,deepin-terminal和firefox还能使用fcitx呢?
这些环境变量不配置的时候,fcitx 能不能在某个程序里用是不确定的。
原来如此!
离线
楼主,你在alacritty下使用拼音正常吗?我也遇到了问题,配置按照你的方式将fcitx的export放在了i3上面,可是依然不能调出输入法。对于alacritty,你有针对输入法有特殊的配置吗?
离线
在 alacritty 內用 `echo $XMODIFIERS ` 命令看一下環境變量有沒有應用到。
computerは神様だと信じていて
だからVIMの上でずっと指が舞って
自ら恋愛相手を作り出して
离线
在 alacritty 內用 `echo $XMODIFIERS ` 命令看一下環境變量有沒有應用到。
多谢指导。我在xinitrc文件中export 前运行了fcitx后就可以使用了
离线
页次: 1