107 lines
2.9 KiB
Nix
107 lines
2.9 KiB
Nix
{pkgs, ...}: {
|
|
# xdg.configFile."fcitx5" = {
|
|
# source = ../../../../rsc/config/fcitx5;
|
|
# 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"
|
|
'';
|
|
};
|
|
};
|
|
}
|