hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.54k stars 819 forks source link

ibus doesn't work properly under hyprland #288

Closed sunraysun closed 2 years ago

sunraysun commented 2 years ago

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

  1. 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
vaxerski commented 2 years ago
windowrule=nofocus,ibus-ui
sunraysun commented 2 years ago

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

vaxerski commented 2 years ago

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

sunraysun commented 2 years ago

@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 commented 2 years ago

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

muttnooob commented 7 months ago

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 commented 5 months ago

@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 commented 5 months ago

use fcitx5. IBus works poorly under wl