sway: Fix fcitx5

This commit is contained in:
PapaTutuWawa 2021-11-04 18:08:36 +01:00
parent 126c446b99
commit 1dd0ba034f
2 changed files with 5 additions and 2 deletions

View File

@ -52,7 +52,7 @@ in {
{ command = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; always = true; } { command = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; always = true; }
{ command = "${swayIdleWrapper}"; always = true; } { command = "${swayIdleWrapper}"; always = true; }
] ++ lib.optional config.ptw.system.i18n.enable { ] ++ lib.optional config.ptw.system.i18n.enable {
command = "${pkgs.fcitx5}/bin/fcitx -d"; command = "${pkgs.fcitx5}/bin/fcitx5 -d";
always = true; always = true;
}; };
modifier = "${modifier}"; modifier = "${modifier}";

View File

@ -8,9 +8,12 @@ in {
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# TODO: mozc cannot be configured for some reason
i18n.inputMethod = { i18n.inputMethod = {
enabled = "fcitx"; enabled = "fcitx";
ibus.engines = with pkgs.ibus-engines; [ mozc ]; fcitx.engines = with pkgs.fcitx-engines; [ mozc ];
}; };
environment.systemPackages = with pkgs; [ fcitx5-configtool fcitx5-gtk ];
}; };
} }