Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

{ pkgs, ... }:
let
themes = ".local/share/fcitx5/themes/"; # fcitx5 theme folder
nord = pkgs.fetchFromGitHub {
owner = "tonyfettes";
repo = "fcitx5-nord";
rev = "bdaa8fb723b8d0b22f237c9a60195c5f9c9d74d1";
sha256 = "qVo/0ivZ5gfUP17G29CAW0MrRFUO0KN1ADl1I/rvchE=";
};
gruvbox = pkgs.fetchFromGitHub {
owner = "ayamir";
repo = "fcitx5-gruvbox";
rev = "80bd3ab4c723fc6fcc4a222b6cede6f8337eedda";
sha256 = "UZc6UTpodxP3pJ6q58FZsJaHr1Wwl/NLYYmo22QYmNk=";
};
in
{
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs.fcitx-engines; [ anthy ];
};
home.sessionVariables = {
GTK_IM_MDOULE = "fcitx";
QT_IM_MODULE = "fcitx";
XMODIFIERS = "@im=fcitx";
GLFW_IM_MODULE = "ibus"; # IME support in kitty
};
home.file = {
"${themes}Nord-Dark".source = "${nord}/Nord-Dark";
"${themes}Nord-Light".source = "${nord}/Nord-Light";
"${themes}Gruvbox-Dark".source = "${gruvbox}/Gruvbox-Dark";
"${themes}Gruvbox-Light".source = "${gruvbox}/Gruvbox-Light";
".config/fcitx5/conf/classicui.conf".text = "Theme=Nord-Dark";
};
}