View Single Post
  #8   (View Single Post)  
Old 26th December 2022
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

Ok, I just did this, again with Japanese on a 7.2 install.
It installs fcitx-anthy, but also installs fcitx5. Previously, I've been able to configure it manually but this time installed fcitx-config-qt-5 or whatever it's called.

I then called it with fcitx-config. It gave me a message that fcitx wasn't running and offered to start it. I then typed anthy in the search section, came up, and I added it to input methods.

I start with xenodm. So I put this in .xsession rather than .xinit.

Code:
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export LC_ALL=en_US.UTF-8
For me, this works perfectly. When I hit ctl+space it changes to Japanese input. It won't work in OpenBSD's vi, displaying gibberish, but if I install nvi, it works fine in nvi. It is also fine in a urxvt terminal.

If I were using .xinitrc I would do


Code:
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export LC_ALL=en_US.UTF-8
fcitx5 -d (and an & if it had trouble starting x but I think -d would do it)
exec i3
In other words, I've always done the exec <windowmanager> line at the end.
Reply With Quote