# Archlinux Wayland Input Method Issues


## fcitx5 Input Method Not Available

1. Set the virtual keyboard to `fcitx 5` in the desktop environment settings

   ![Virtual keyboard settings in KDE Plasma](./1.png)

2. Configure `~/.config/<flags>.conf` files
   Some electron packages read flags files from the `~/.config/` directory, for example:
   - [visual-studio-code-bin](<https://aur.archlinux.org/packages/> visual-studio-code-bin) reads `~/.config/code-flags.conf`
   - [google-chrome](<https://aur.archlinux.org/packages/> google-chrome) reads `~/.config/chrome-flags.conf`
   - Electron-based programs read `~/.config/electron-flags.conf` or `~/.config/electron<electron-major-version>-flags.conf`

   Configuration content:

   ```plaintext
   --enable-features=WaylandWindowDecorations
   --ozone-platform-hint=auto
   --enable-wayland-ime
   ```

3. For other software that cannot use input methods, add the following content to the startup environment variables:

   ```plaintext
   XMODIFIERS=@im=fcitx
   GTK_IM_MODULE=xim
   ```


---

> Author: Nite  
> URL: https://www.nite07.com/en/posts/linux-wayland-ime/  

