mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
home/fcitx: set GLFW_IM_MODULE
This commit is contained in:
parent
7e5116f55d
commit
7d949dcce2
2 changed files with 8 additions and 3 deletions
|
|
@ -3,7 +3,9 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
cfg = config.i18n.inputMethod;
|
||||
in {
|
||||
i18n.inputMethod = {
|
||||
fcitx5.addons = [
|
||||
pkgs.fcitx5-chinese-addons
|
||||
|
|
@ -17,7 +19,11 @@
|
|||
# - kill the existing fcitx5 process because the configtool kinda talks to it (?)
|
||||
# - unlink the configuration file linked by home-manager (or copy it) so fcitx5-configtool can write to it
|
||||
# - use fcitx5-configtool from a nix shell so that it doesn't get stuck with the nix store configuration
|
||||
xdg.configFile = lib.mkIf config.i18n.inputMethod.enable {
|
||||
xdg.configFile = lib.mkIf cfg.enable {
|
||||
"fcitx5".source = "${./fcitx}";
|
||||
};
|
||||
|
||||
home.sessionVariables = lib.mkIf cfg.enable {
|
||||
GLFW_IM_MODULE = "ibus"; # make kitty aware of fcitx via ibus interface
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue