1
0
forked from extern/nix-config

fcitx: Use wayland front-end for GTK

Fixes the warning notification shown on boot.
This commit is contained in:
Donovan Glover 2024-01-13 00:38:42 -05:00
parent 4a7d310d9f
commit bb3792d748
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 8 additions and 4 deletions

View File

@ -41,7 +41,6 @@
MOZ_ENABLE_WAYLAND = "1";
XDG_RUNTIME_DIR = "/run/user/1000";
DISPLAY = ":0";
GTK_IM_MODULE = "fcitx";
QT_IM_MODULE = "fcitx";
XMODIFIERS = "@im=fcitx";
SDL_IM_MODULE = "fcitx";

View File

@ -60,7 +60,6 @@ in
xdg.configFile."hypr/hyprland.conf".text = with config.lib.stylix.colors; /* bash */ ''
env=XCURSOR_SIZE,24
env=BROWSER,librewolf
env=GTK_IM_MODULE,fcitx
env=QT_IM_MODULE,fcitx
env=XMODIFIERS,@im=fcitx
env=SDL_IM_MODULE,fcitx

View File

@ -3,8 +3,14 @@
{
programs.hyprland.enable = true;
i18n.inputMethod.enabled = "fcitx5";
i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ];
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5 = {
addons = with pkgs; [ fcitx5-mozc ];
waylandFrontend = true;
};
};
security.pam.services.swaylock = { };