Replace ibus with fcitx

This commit is contained in:
Natsu Kagami 2023-01-25 15:43:11 +01:00
parent b46418e8e4
commit 667f2f5040
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
3 changed files with 21 additions and 13 deletions

View file

@ -67,12 +67,12 @@ in
}; };
# IBus configuration # IBus configuration
dconf.settings."desktop/ibus/general" = { # dconf.settings."desktop/ibus/general" = {
engines-order = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ]; # engines-order = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ];
reload-engines = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ]; # reload-engines = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ];
}; # };
dconf.settings."desktop/ibus/general/hotkey" = { # dconf.settings."desktop/ibus/general/hotkey" = {
triggers = hm.gvariant.mkArray hm.gvariant.type.string [ "<Super>z" ]; # triggers = hm.gvariant.mkArray hm.gvariant.type.string [ "<Super>z" ];
}; # };
}; };
} }

View file

@ -49,7 +49,7 @@ let
in in
{ {
imports = [ ./ibus.nix ]; # imports = [ ./ibus.nix ];
options.programs.my-sway = { options.programs.my-sway = {
enable = mkEnableOption "Enable the sway configuration"; enable = mkEnableOption "Enable the sway configuration";

View file

@ -73,8 +73,16 @@
}; };
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "ja_JP.UTF-8"; i18n.defaultLocale = "ja_JP.UTF-8";
i18n.inputMethod.enabled = "ibus"; # i18n.inputMethod.enabled = "ibus";
i18n.inputMethod.ibus.engines = (with pkgs.ibus-engines; [ bamboo mozc libpinyin ]); # i18n.inputMethod.ibus.engines = (with pkgs.ibus-engines; [ bamboo mozc libpinyin ]);
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [
fcitx5-mozc
fcitx5-unikey
fcitx5-gtk
];
};
# console = { # console = {
# font = "Lat2-Terminus16"; # font = "Lat2-Terminus16";
# keyMap = "us"; # keyMap = "us";
@ -157,9 +165,9 @@
# Environment variables # Environment variables
environment.variables = { environment.variables = {
# Input method overrides # Input method overrides
GTK_IM_MODULE = "ibus"; # GTK_IM_MODULE = "ibus";
QT_IM_MODULE = "ibus"; # QT_IM_MODULE = "ibus";
"XMODIFIERS=@im" = "ibus"; # "XMODIFIERS=@im" = "ibus";
# Basic editor setup # Basic editor setup
EDITOR = "kak"; EDITOR = "kak";