Environments:
Old. Check the new method
.pam_environment→environment.d/xxx.conf- https://kisaragi-hiu.com/migrating-away-from-pam-environment/
- doc: https://wiki.archlinux.org/title/Environment_variables#Per_Xorg_session (look wayland)
# ~/.config/environment.d/imejp.conf
XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibusInstallation:
- Install fcitx
- set the above env variables
- add fcitx to autostart
- logout and signin
sudo pacman -S fcitx-configuration
sudo pacman -S fcitx-mozc
sudo pacman -S fcitx-configtoolNew method for KDE
- No need to install any AUR packages.
- system settings → keyboard → virtual keyboard → fcitx5 wayland launcher
- add those envs
- frick reddit, and any other sources, they do not work for you, because it’s highly likely they are all deprecated and arch wiki might have way easier installations
sudp pacman -S fcitx5-im fcitx5-mozc
# or
sudo pacman -S fcitx5 fcitx5-configtool
fcitx5-diagnose
# For GTK applications like firefox single line mode
sudo pacman -S fcitx5-gtk- No need to set any envs anywhere.