Skip to content

Commit

Permalink
fcitx: Use wayland front-end for GTK
Browse files Browse the repository at this point in the history
Fixes the warning notification shown on boot.
  • Loading branch information
donovanglover committed Jan 13, 2024
1 parent 4a7d310 commit bb3792d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion containers/shared.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 0 additions & 1 deletion home/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions modules/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { };

Expand Down

0 comments on commit bb3792d

Please sign in to comment.