fcitx not working wip

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-10-23 12:58:02 +02:00
parent 14df46a631
commit 115a6d3c83

View File

@@ -1,28 +1,87 @@
{ pkgs-unstable, ... }: { pkgs, pkgs-unstable, ... }:
{ {
# i18n.inputMethod = {
# type = "fcitx5";
# enable = true;
# fcitx5.addons = with pkgs; [
# fcitx5-gtk # alternatively, kdePackages.fcitx5-qt
# fcitx5-chinese-addons # table input method support
# fcitx5-nord # a color theme
# ];
# };
i18n.inputMethod = { i18n.inputMethod = {
enabled = "fcitx5"; enabled = "fcitx5";
# type = "fcitx5"; # for later than 24.05 fcitx5.waylandFrontend = true;
# enable = true; fcitx5.addons = with pkgs; [
fcitx5 = { fcitx5-gtk # alternatively, kdePackages.fcitx5-qt
waylandFrontend = true; fcitx5-chinese-addons # table input method support
addons = with pkgs-unstable; [ fcitx5-nord # a color theme
rime-data
fcitx5-rime
fcitx5-gtk
fcitx5-chinese-addons
fcitx5-catppuccin
]; ];
}; };
}; # i18n.inputMethod = {
services.xserver.desktopManager.runXdgAutostartIfNone = true; # enabled = "fcitx5";
environment.variables = { # ignoreUserConfig = true;
GLFW_IM_MODULE = "fcitx"; # waylandFrontend = true;
GTK_IM_MODULE = "fcitx"; # fcitx5 = {
INPUT_METHOD = "fcitx"; # addons = with pkgs-unstable; [
XMODIFIERS = "@im=fcitx"; # rime-data
IMSETTINGS_MODULE = "fcitx"; # fcitx5-rime
QT_IM_MODULE = "fcitx";
SDL_IM_MODULE = "fcitx"; # # Chinese
}; # fcitx5-chinese-addons
# fcitx5-table-extra
# fcitx5-pinyin-moegirl
# fcitx5-pinyin-zhwiki
# # Japanese
# # fcitx5-mozc
# ];
# settings = {
# globalOptions = {
# Hotkey = {
# # Enumerate when press trigger key repeatedly
# EnumerateWithTriggerKeys = "True";
# # Skip first input method while enumerating
# EnumerateSkipFirst = "False";
# };
# "Hotkey/EnumerateForwardKeys" = { "0" = "Control+space"; };
# "Hotkey/EnumerateBackwardKeys" = { "0" = "Control+Shift+space"; };
# "Hotkey/PrevPage" = { "0" = "Up"; };
# "Hotkey/NextPage" = { "0" = "Down"; };
# "Hotkey/PrevCandidate" = { "0" = "Shift+Tab"; };
# "Hotkey/NextCandidate" = { "0" = "Tab"; };
# Behavior = {
# ActiveByDefault = "False"; # Active By Default
# ShareInputState = "No"; # Share Input State
# PreeditEnabledByDefault = "True"; # Show preedit in application
# ShowInputMethodInformation = "True"; # Show Input Method Information when switch input method
# showInputMethodInformationWhenFocusIn = "False"; # Show Input Method Information when changing focus
# CompactInputMethodInformation = "True"; # Show compact input method information
# ShowFirstInputMethodInformation = "True"; # Show first input method information
# DefaultPageSize = "5"; # Default page size
# OverrideXkbOption = "False"; # Override Xkb Option
# PreloadInputMethod = "True"; # Preload input method to be used by default
# };
# };
# inputMethod = {
# "Groups/0" = {
# "Name" = "Default";
# "Default Layout" = "us";
# "DefaultIM" = "mozc";
# };
# "Groups/0/Items/0" = {
# "Name" = "keyboard-us";
# "Layout" = null;
# };
# "Groups/0/Items/1" = {
# "Name" = "mozc";
# "Layout" = null;
# };
# "GroupOrder" = {
# "0" = "Default";
# };
# };
# };
# };
# };
} }