remove jp input method

This commit is contained in:
Yan Lin 2025-11-30 14:36:24 +01:00
parent 720c99add2
commit 7e68e6fa03
4 changed files with 4 additions and 38 deletions

View file

@ -37,7 +37,6 @@ in
sources = [ sources = [
(mkTuple [ "xkb" "us" ]) (mkTuple [ "xkb" "us" ])
(mkTuple [ "ibus" "libpinyin" ]) (mkTuple [ "ibus" "libpinyin" ])
(mkTuple [ "ibus" "mozc-jp" ])
]; ];
xkb-options = [ "" ]; xkb-options = [ "" ];
}; };
@ -117,21 +116,6 @@ in
}; };
# IBus Mozc (Japanese) configuration - default to Hiragana input mode
home.file.".config/mozc/ibus_config.textproto".text = ''
engines {
name : "mozc-jp"
longname : "Mozc"
layout : "default"
layout_variant : ""
layout_option : ""
rank : 80
symbol : ""
composition_mode : HIRAGANA
}
active_on_launch: True
'';
# Configure cursor theme system-wide # Configure cursor theme system-wide
home.pointerCursor = { home.pointerCursor = {
name = "Adwaita"; name = "Adwaita";

View file

@ -86,8 +86,7 @@ in
enable = true; enable = true;
type = "ibus"; type = "ibus";
ibus.engines = with pkgs.ibus-engines; [ ibus.engines = with pkgs.ibus-engines; [
libpinyin # Chinese Simplified Pinyin libpinyin
mozc # Japanese (Romaji)
]; ];
}; };

View file

@ -18,10 +18,6 @@
Name=rime Name=rime
Layout= Layout=
[Groups/0/Items/2]
Name=mozc
Layout=
[GroupOrder] [GroupOrder]
0=Default 0=Default
''; '';
@ -64,15 +60,6 @@
''; '';
}; };
# Mozc addon configuration - 7 candidates per page
xdg.configFile."fcitx5/conf/mozc.conf" = {
force = true;
text = ''
[InputMethod]
PageSize=7
'';
};
# GNOME Keyring for storing WiFi passwords and other secrets # GNOME Keyring for storing WiFi passwords and other secrets
services.gnome-keyring = { services.gnome-keyring = {
enable = true; enable = true;
@ -203,10 +190,7 @@
keyboard-us) keyboard-us)
${pkgs.fcitx5}/bin/fcitx5-remote -s rime ${pkgs.fcitx5}/bin/fcitx5-remote -s rime
;; ;;
rime) *)
${pkgs.fcitx5}/bin/fcitx5-remote -s mozc
;;
mozc|*)
${pkgs.fcitx5}/bin/fcitx5-remote -s keyboard-us ${pkgs.fcitx5}/bin/fcitx5-remote -s keyboard-us
;; ;;
esac esac

View file

@ -69,9 +69,8 @@ in
enable = true; enable = true;
type = "fcitx5"; type = "fcitx5";
fcitx5.addons = with pkgs; [ fcitx5.addons = with pkgs; [
fcitx5-rime # Chinese Simplified/Traditional (more powerful than libpinyin) fcitx5-rime
fcitx5-mozc # Japanese (Romaji) fcitx5-gtk
fcitx5-gtk # GTK integration
]; ];
}; };