Fix fcitx5 config overwriting error
This commit is contained in:
parent
fb13480de6
commit
2e91bb6963
2 changed files with 105 additions and 3 deletions
|
@ -1,6 +1,107 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
xdg.configFile."fcitx5" = {
|
# xdg.configFile."fcitx5" = {
|
||||||
source = ../../../../rsc/config/fcitx5;
|
# source = ../../../../rsc/config/fcitx5;
|
||||||
recursive = true;
|
# recursive = true;
|
||||||
|
# };
|
||||||
|
xdg.configFile = {
|
||||||
|
"fcitx5/config" = {
|
||||||
|
force = true;
|
||||||
|
text = ''
|
||||||
|
[Hotkey]
|
||||||
|
# Enumerate when press trigger key repeatedly
|
||||||
|
EnumerateWithTriggerKeys=True
|
||||||
|
# Temporally switch between first and current Input Method
|
||||||
|
AltTriggerKeys=
|
||||||
|
# Enumerate Input Method Forward
|
||||||
|
EnumerateForwardKeys=
|
||||||
|
# Enumerate Input Method Backward
|
||||||
|
EnumerateBackwardKeys=
|
||||||
|
# Skip first input method while enumerating
|
||||||
|
EnumerateSkipFirst=False
|
||||||
|
# Enumerate Input Method Group Forward
|
||||||
|
EnumerateGroupForwardKeys=
|
||||||
|
# Enumerate Input Method Group Backward
|
||||||
|
EnumerateGroupBackwardKeys=
|
||||||
|
# Activate Input Method
|
||||||
|
ActivateKeys=
|
||||||
|
# Deactivate Input Method
|
||||||
|
DeactivateKeys=
|
||||||
|
# Default Previous page
|
||||||
|
PrevPage=
|
||||||
|
# Default Next page
|
||||||
|
NextPage=
|
||||||
|
# Default Previous Candidate
|
||||||
|
PrevCandidate=
|
||||||
|
# Default Next Candidate
|
||||||
|
NextCandidate=
|
||||||
|
# Toggle embedded preedit
|
||||||
|
TogglePreedit=
|
||||||
|
|
||||||
|
[Hotkey/TriggerKeys]
|
||||||
|
0=Control+Alt+space
|
||||||
|
|
||||||
|
[Behavior]
|
||||||
|
# Active By Default
|
||||||
|
ActiveByDefault=False
|
||||||
|
# Share Input State
|
||||||
|
ShareInputState=No
|
||||||
|
# Show preedit in application
|
||||||
|
PreeditEnabledByDefault=True
|
||||||
|
# Show Input Method Information when switch input method
|
||||||
|
ShowInputMethodInformation=True
|
||||||
|
# Show Input Method Information when changing focus
|
||||||
|
showInputMethodInformationWhenFocusIn=False
|
||||||
|
# Show compact input method information
|
||||||
|
CompactInputMethodInformation=True
|
||||||
|
# Show first input method information
|
||||||
|
ShowFirstInputMethodInformation=True
|
||||||
|
# Default page size
|
||||||
|
DefaultPageSize=5
|
||||||
|
# Override Xkb Option
|
||||||
|
OverrideXkbOption=False
|
||||||
|
# Custom Xkb Option
|
||||||
|
CustomXkbOption=
|
||||||
|
# Force Enabled Addons
|
||||||
|
EnabledAddons=
|
||||||
|
# Force Disabled Addons
|
||||||
|
DisabledAddons=
|
||||||
|
# Preload input method to be used by default
|
||||||
|
PreloadInputMethod=True
|
||||||
|
# Allow input method in the password field
|
||||||
|
AllowInputMethodForPassword=False
|
||||||
|
# Show preedit text when typing password
|
||||||
|
ShowPreeditForPassword=False
|
||||||
|
# Interval of saving user data in minutes
|
||||||
|
AutoSavePeriod=30
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
"fcitx5/profile" = {
|
||||||
|
force = true;
|
||||||
|
text = ''
|
||||||
|
[Groups/0]
|
||||||
|
# Group Name
|
||||||
|
Name="Group 1"
|
||||||
|
# Layout
|
||||||
|
Default Layout=de
|
||||||
|
# Default Input Method
|
||||||
|
DefaultIM=mozc
|
||||||
|
|
||||||
|
[Groups/0/Items/0]
|
||||||
|
# Name
|
||||||
|
Name=keyboard-de
|
||||||
|
# Layout
|
||||||
|
Layout=
|
||||||
|
|
||||||
|
[Groups/0/Items/1]
|
||||||
|
# Name
|
||||||
|
Name=mozc
|
||||||
|
# Layout
|
||||||
|
Layout=
|
||||||
|
|
||||||
|
[GroupOrder]
|
||||||
|
0="Group 1"
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
fcitx5-mozc
|
fcitx5-mozc
|
||||||
fcitx5-gtk
|
fcitx5-gtk
|
||||||
];
|
];
|
||||||
|
fcitx5.waylandFrontend = true;
|
||||||
};
|
};
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
|
|
Loading…
Reference in a new issue