Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibus doesn't work properly under hyprland #288

Closed
sunraysun opened this issue Jul 1, 2022 · 8 comments
Closed

ibus doesn't work properly under hyprland #288

sunraysun opened this issue Jul 1, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@sunraysun
Copy link

I installed ibus and ibus-libpinyin for input Chinese and it works perfectly under gnome wayland. But under hyprland I'm having trouble.
The following are the steps to reproduce the problem
1, use ibus-daemon -x -d to start ibus
2, Open any application or terminal, such as geany
3, press the Shift key to switch to the Chinese input mode
4. Press any letter, the candidate word panel appears behind the editor window then disappears immediately, no text is inserted into the editor.
Below is the log file of hyprland
hyprland.log
Below is my hyprland.conf
hyprland.conf.txt

@sunraysun sunraysun added the bug Something isn't working label Jul 1, 2022
@vaxerski
Copy link
Member

vaxerski commented Jul 1, 2022

windowrule=nofocus,ibus-ui

@sunraysun
Copy link
Author

I add windowrule=nofocus,ibus-ui in hyprland.conf , but it still not work, even after restart.

@vaxerski
Copy link
Member

vaxerski commented Jul 1, 2022

woops, wrong regex. ^(Ibus-ui-gtk3)$

@sunraysun
Copy link
Author

@vaxerski Thank you very much. Now IBus can be used in many applications, except for various terminals, such as alacritty, Kitty, foot ...
I'm still studying how to make it work.
I have set the following environment variables in .pam_environment, /etc/environment,.profile

GTK_IM_MODULE DEFAULT=ibus QT_IM_MODULE DEFAULT=ibus XMODIFIERS DEFAULT=@im=ibus INPUT_METHOD DEFAULT=ibus SDL_IM_MODULE DEFAULT=ibus

Do you have any suggestions?

@vaxerski
Copy link
Member

vaxerski commented Jul 1, 2022

some apps do not accept IME input under wayland through XWayland. Not much you can do afaik. You'll have to wait for Hyprland to support the wayland IME protocols natively, that might fix it

@vaxerski vaxerski closed this as completed Jul 1, 2022
@muttnooob
Copy link

Hi, @sunraysun new to linux, and know just enough to get by to set up my system on hyprland, browsers, waybar, etc.

Are you able to walk through how to get the input methods working on Hyprland? I don't type chinese pinyin often, but when I do, it's the wife that needs me to research something or reply to her --- so happy wife, happy life.

are you able to walk me through how to get this working?

thank you much in advance.

@daniel-hernandez-sony
Copy link

daniel-hernandez-sony commented Apr 7, 2024

@sunraysun

I am trying to get to the same stage where you are. I have managed to get ibus to work but I cannot see the candidate suggestions. Would you be so kind so as to tell me what have you done to fix that in some applications?

I have:
exec-once = ibus-daemon -x -d
And:

windowrule = nofocus, ^(Ibus-ui-gtk3)$
windowrule = nofocus, ^(Ibus-ui-gtk5)$
windowrule = nofocus, ^(Ibus-ui-gtk4)$

But still I cannot see the suggestions on any app (I've tried firefox, telegram, spotify and wezterm terminal)

@vaxerski
Copy link
Member

vaxerski commented Apr 8, 2024

use fcitx5. IBus works poorly under wl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants