Copy config file, no via-store, short config
This commit is contained in:
parent
10ffa340b7
commit
4c8a8800d3
|
@ -1,147 +1,12 @@
|
||||||
[Hotkey]
|
[Hotkey]
|
||||||
# Trigger Input Method
|
|
||||||
#TriggerKey=CTRL_SPACE
|
|
||||||
# Use extra trigger key only after using it to inactivate
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#UseExtraTriggerKeyOnlyWhenUseItToInactivate=True
|
|
||||||
# Extra key for trigger input method
|
|
||||||
# Available Value:
|
|
||||||
# R_CTRL
|
|
||||||
# R_SHIFT
|
|
||||||
# L_SHIFT
|
|
||||||
# L_CTRL
|
|
||||||
# ALT_L_SHIFT
|
|
||||||
# ALT_R_SHIFT
|
|
||||||
# CTRL Both
|
|
||||||
# SHIFT Both
|
|
||||||
# L_ALT
|
|
||||||
# R_ALT
|
|
||||||
# ALT Both
|
|
||||||
# Left Super
|
|
||||||
# Right Super
|
|
||||||
# Super Both
|
|
||||||
# Ctrl+Left Super
|
|
||||||
# Ctrl+Right Super
|
|
||||||
# Super+Left Ctrl
|
|
||||||
# Super+Right Ctrl
|
|
||||||
# Disabled
|
|
||||||
# Custom
|
|
||||||
SwitchKey=Disabled
|
SwitchKey=Disabled
|
||||||
# Custom switch key
|
|
||||||
#CustomSwitchKey=
|
|
||||||
# Activate input method
|
|
||||||
#ActivateKey=
|
|
||||||
# Inactivate Input Method
|
|
||||||
#InactivateKey=
|
|
||||||
# Enable Hotkey to scroll Between Input Method
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#IMSwitchKey=True
|
|
||||||
# Include Inactivate when scrolling between Input Method
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#IMSwitchIncludeInactive=False
|
|
||||||
# Scroll between Input Method
|
|
||||||
# Available Value:
|
|
||||||
# CTRL_SHIFT
|
|
||||||
# ALT_SHIFT
|
|
||||||
# CTRL_SUPER
|
|
||||||
# ALT_SUPER
|
|
||||||
IMSwitchHotkey=ALT_SHIFT
|
IMSwitchHotkey=ALT_SHIFT
|
||||||
# Reload configuration
|
|
||||||
#ReloadConfig=CTRL_5
|
|
||||||
# Interval of Two Key Input
|
|
||||||
TimeInterval=240
|
TimeInterval=240
|
||||||
# Switching Virtual Keyboard
|
|
||||||
#VKSwitchKey=CTRL_ALT_B
|
|
||||||
# Switching Remind Mode
|
|
||||||
#RemindSwitchKey=
|
|
||||||
# Switching Full Width Character Mode
|
|
||||||
#FullWidthSwitchKey=
|
|
||||||
# Switch Full Width Punc Mode
|
|
||||||
#PuncSwitchKey=CTRL_.
|
|
||||||
# Prev Page
|
|
||||||
#PrevPageKey=- UP
|
|
||||||
# Next Page
|
|
||||||
#NextPageKey== DOWN
|
|
||||||
# Choose Second and Third Candidate Word
|
|
||||||
#SecondThirdCandWordKey=
|
|
||||||
# Saving All Config and Input History
|
|
||||||
#SaveAllKey=CTRL_ALT_S
|
|
||||||
# Switch Embeded Preedit
|
|
||||||
#SwitchPreedit=CTRL_ALT_P
|
|
||||||
# Previous Candidate Word
|
|
||||||
#PrevWord=SHIFT_TAB
|
|
||||||
# Next Candidate Word
|
|
||||||
#NextWord=TAB
|
|
||||||
|
|
||||||
[Program]
|
[Program]
|
||||||
# Seconds sleep before fcitx really start
|
|
||||||
DelayStart=5
|
DelayStart=5
|
||||||
# Share State Among Window
|
|
||||||
# Available Value:
|
|
||||||
# No
|
|
||||||
# All
|
|
||||||
# PerProgram
|
|
||||||
#ShareStateAmongWindow=No
|
|
||||||
# Default Input Method State
|
|
||||||
# Available Value:
|
|
||||||
# Inactive
|
|
||||||
# Active
|
|
||||||
#DefaultInputMethodState=Inactive
|
|
||||||
|
|
||||||
[Output]
|
[Output]
|
||||||
# Type half width Punc After a Number
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#HalfPuncAfterNumber=True
|
|
||||||
# Disable Paging in Remind Mode
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#RemindModeDisablePaging=True
|
|
||||||
# Commit when toggle state
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#SendTextWhenSwitchEng=True
|
|
||||||
# Candidate Word Number
|
|
||||||
#CandidateWordNumber=5
|
|
||||||
# Give the tips of Phrase
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#PhraseTips=True
|
|
||||||
# Do not commit preedit text when unfocus a window
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#DontCommitPreeditWhenUnfocus=False
|
|
||||||
|
|
||||||
[Appearance]
|
[Appearance]
|
||||||
# Show Input Method Hint After Input method changed
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#ShowInputWindowAfterTriggering=True
|
|
||||||
# Show Input Method Hint After Input method changed and Focus in
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#ShowInputWindowWhenFocusIn=False
|
|
||||||
# Input Method Hint will be only shown when state is active
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#ShowInputWindowOnlyWhenActive=True
|
|
||||||
# Show Input Speed
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#ShowInputSpeed=False
|
|
||||||
# Show Version
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#ShowVersion=False
|
|
||||||
# Do not show input window if there is only preedit string
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#HideInputWindowWhenOnlyPreeditString=False
|
|
||||||
# Do not show input window if there is only one candidate and preedit
|
|
||||||
# Available Value:
|
|
||||||
# True False
|
|
||||||
#HideInputWindowWhenOnlyOneCandidate=False
|
|
||||||
|
|
||||||
|
|
|
@ -3,18 +3,6 @@ import ../make-test-python.nix (
|
||||||
pkgs, ...
|
pkgs, ...
|
||||||
}:
|
}:
|
||||||
# copy_from_host works only for store paths
|
# copy_from_host works only for store paths
|
||||||
let
|
|
||||||
fcitx_profile_file_host = pkgs.writeTextFile {
|
|
||||||
name = "fcitx_profile";
|
|
||||||
text = builtins.readFile ./profile;
|
|
||||||
};
|
|
||||||
|
|
||||||
fcitx_config_file_host = pkgs.writeTextFile {
|
|
||||||
name = "fcitx_config";
|
|
||||||
text = builtins.readFile ./config;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
name = "fcitx";
|
name = "fcitx";
|
||||||
machine =
|
machine =
|
||||||
|
@ -77,11 +65,11 @@ import ../make-test-python.nix (
|
||||||
# Point and click would be expensive,
|
# Point and click would be expensive,
|
||||||
# So configure using files
|
# So configure using files
|
||||||
machine.copy_from_host(
|
machine.copy_from_host(
|
||||||
"${fcitx_profile_file_host}",
|
"${./profile}",
|
||||||
"${fcitx_confdir}/profile",
|
"${fcitx_confdir}/profile",
|
||||||
)
|
)
|
||||||
machine.copy_from_host(
|
machine.copy_from_host(
|
||||||
"${fcitx_config_file_host}",
|
"${./config}",
|
||||||
"${fcitx_confdir}/config",
|
"${fcitx_confdir}/config",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue