You are not logged in.
I recently switched to sway (wayland i3wm), and I followd this guide: https://www.fosskers.ca/en/blog/wayland to get fcitx working with japanese input. As input methods, I selected "Mozc" (japanese) and "Keyboard - English (US) - English (US, intl, with dead keys)" in the gui. At first the dead keys only seemed to work on urxvt (the only thing running through xwayland I think), but when I booted it up today, it just didn't work anywhere. To be clear about what actually happens, I press the ' button, and a ' immediately appears, instead of me having to press ' + enter (expected behavior). I have noticed a similar issue on my laptop (similar setup), though, there it seems to sometimes work?
I am mostly wondering if I configured something wrong, or if I should be filing this as a an fcitx bug?
Offline
Did you switch from i3?
If not, then
I followd this guide: https://www.fosskers.ca/en/blog/wayland
maybe take a look at https://wiki.archlinux.org/title/Fcitx# … _Autostart
Online
Did you switch from i3?
If not, thenI followd this guide: https://www.fosskers.ca/en/blog/wayland
maybe take a look at https://wiki.archlinux.org/title/Fcitx# … _Autostart
I did switch from i3, but I wasn't using fcitx on i3.
The wiki basically tells you to do the exact same thing as the guide I followed.
For clarity, these are the exact steps I took:
I put the following lines in /etc/environment:
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx(and then I restarted)
I put the following line in .config/sway/config:
exec_always fcitx5 -d --replacewhich I know is a bit different from what the wiki does, but both methods start fcitx5 on startup.
Also, fcitx works, everywhere, including japanese input. The only thing that isn't working is the dead keys.
Offline
Check the behavior w/ i3/Xorg and post the output of "setxkbmap -print -query"
Also test the former w/o fcitx wrt the dead keys - If fcitx generally works and the dead keys don't (even w/o fcitx, despite picking a dead-key layout variant) that's likely just a bug in sway.
Online
Check the behavior w/ i3/Xorg and post the output of "setxkbmap -print -query"
Also test the former w/o fcitx wrt the dead keys - If fcitx generally works and the dead keys don't (even w/o fcitx, despite picking a dead-key layout variant) that's likely just a bug in sway.
On i3 with fcitx, the dead keys seem to work correctly. And I get the following results from setxkbmap -print -query:
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us(intl)+inet(evdev)+capslock(su
xkb_geometry { include "pc(pc105)" };
};
rules: evdev
model: pc105
layout: us
variant: intl
options: caps:superI also tried killing fcitx on both i3 and on sway.
On i3, default dead keys work in most places, though, not in the qutebrowser addres bar (didn't try in any text boxes in the browser)
On sway, dead keys don't seem to work, even without fcitx. Though, it seems that, whenever I restart fcitx, dead keys work for some time in urxvt (xwayland).
Offline
"xkb_symbols { include "pc+us(intl)+inet(evdev)+capslock(su" looks capped, but the X11 deadkeys simply come from the layout, not fcitx (does qutebrowser provide deadkeys w/ fcitx?)
=> sway keyboard layout handling. Please post your sway config before we assume a bug.
Edit: also try unsetting GTK_IM_MODULE & QT_IM_MODULE under sway (when trying w/o fcitx)
Last edited by seth (2022-08-19 20:18:56)
Online
"xkb_symbols { include "pc+us(intl)+inet(evdev)+capslock(su" looks capped, but the X11 deadkeys simply come from the layout, not fcitx (does qutebrowser provide deadkeys w/ fcitx?)
=> sway keyboard layout handling. Please post your sway config before we assume a bug.Edit: also try unsetting GTK_IM_MODULE & QT_IM_MODULE under sway (when trying w/o fcitx)
I tried commenting out GTK_IM_MODULE & QT_IM_MODULE in /etc/environment, and restarting, then killing fcitx, but still no dead keys (on sway). Also, I did indeed make a copy paste mistake there, the full output of setsxkbmap -print -query is:
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us(intl)+inet(evdev)+capslock(super)" };
xkb_geometry { include "pc(pc105)" };
};
rules: evdev
model: pc105
layout: us
variant: intl
options: caps:super(The caps:super thing is something I did)
Offline
"xkb_symbols { include "pc+us(intl)+inet(evdev)+capslock(su" looks capped, but the X11 deadkeys simply come from the layout, not fcitx (does qutebrowser provide deadkeys w/ fcitx?)
=> sway keyboard layout handling. Please post your sway config before we assume a bug.Edit: also try unsetting GTK_IM_MODULE & QT_IM_MODULE under sway (when trying w/o fcitx)
As for the config file, I just tried with the default config (plus the one line to start fcitx, and I still have the same issue.
Also, you say that deadkeys simply come from the layout, but fcitx deadkeys sure look different than normal system deadkeys. (On normal i3 without fcitx, nothing is displayed when typing the dead key, while in fcitx, a little window appears with the ' or " symbol there.) But idk if that is relevant.
Offline
The "normal" config will rather not get you the intl layout?
https://wiki.archlinux.org/title/Sway#Keymap
Online
The "normal" config will rather not get you the intl layout?
https://wiki.archlinux.org/title/Sway#Keymap
It seems that this was just me being stupid, because I did indeed not have the input method set in sway. I guess I assumed fcitx would just take control of setting the input method (mainly because I think ibus, which I used on i3 does that).
Either way, that seemed to have fixed the problem. tyvm
Offline