mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: make fcitx5 a homeManager module
This commit is contained in:
parent
0da5ebfc21
commit
06a4ec7611
8 changed files with 6 additions and 3 deletions
|
|
@ -12,7 +12,6 @@
|
|||
./restic.nix
|
||||
./fs.nix
|
||||
|
||||
./inputMethod
|
||||
./packages.nix
|
||||
|
||||
./gui.nix
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
i18n.inputMethod = {
|
||||
enabled = "fcitx5";
|
||||
fcitx5.addons = [
|
||||
pkgs.fcitx5-chinese-addons
|
||||
pkgs.fcitx5-table-extra
|
||||
];
|
||||
};
|
||||
|
||||
environment.etc."xdg/fcitx5".source = ./fcitx;
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
# vim:ft=ini
|
||||
|
||||
DarkTheme=default-dark
|
||||
PerScreenDPI=false
|
||||
PreferTextIcon=false
|
||||
ShowLayoutNameInIcon=true
|
||||
Theme=default
|
||||
UseAccentColor=true
|
||||
UseDarkTheme=false
|
||||
UseInputMethodLanguageToDisplayText=true
|
||||
Vertical Candidate List=false
|
||||
WheelForPaging=true
|
||||
|
||||
Font="Noto Sans Mono CJK TC 18"
|
||||
MenuFont="Noto Sans Mono CJK TC 12"
|
||||
TrayFont="Noto Sans Mono CJK TC 12"
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
# vim:ft=ini
|
||||
|
||||
[Behavior]
|
||||
ActiveByDefault=false
|
||||
AllowInputMethodForPassword=false
|
||||
AutoSavePeriod=30
|
||||
CompactInputmethodInformation=true
|
||||
CustomXkbOption=null
|
||||
DefaultPageSize=5
|
||||
DisabledAddons=null
|
||||
EnabledAddons=null
|
||||
OverriedXkbOption=false
|
||||
PreeditEnabledByDefault=true
|
||||
PreloadInputMethod=true
|
||||
ShareInputState=No
|
||||
ShowFirstInputMethodInformation=true
|
||||
ShowInputMethodInformation=true
|
||||
ShowInputMethodInformationWhenFocusIn=false
|
||||
ShowPreeditForPassword=false
|
||||
|
||||
[Hotkey]
|
||||
EnumerateBackwardKeys=null
|
||||
EnumerateForwardKeys=null
|
||||
EnumerateSkipFirst=null
|
||||
EnumerateWithTriggerKeys=true
|
||||
|
||||
[Hotkey/AltTriggerKeys]
|
||||
0=Shift_L
|
||||
|
||||
[Hotkey/EnumerateGroupBackwardKeys]
|
||||
0=Control+Shift+space
|
||||
|
||||
[Hotkey/EnumerateGroupForwardKeys]
|
||||
0=Control+space
|
||||
|
||||
[Hotkey/NextCandidate]
|
||||
0=Tab
|
||||
|
||||
[Hotkey/NextPage]
|
||||
0=Down
|
||||
|
||||
[Hotkey/PrevCandidate]
|
||||
0=Shift+Tab
|
||||
|
||||
[Hotkey/PrevPage]
|
||||
0=Up
|
||||
|
||||
[Hotkey/TriggerKeys]
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
# vim:ft=ini
|
||||
|
||||
# TODO: remove "null"
|
||||
|
||||
[GroupOrder]
|
||||
0=gDvorak
|
||||
1=gDvorakFrench
|
||||
2=gCangjie
|
||||
|
||||
[Groups/0]
|
||||
Default Layout=us
|
||||
DefaultIM=cangjie3
|
||||
Name=gCangjie
|
||||
|
||||
[Groups/0/Items/0]
|
||||
Layout=null
|
||||
Name=cangjie3
|
||||
|
||||
[Groups/1]
|
||||
Default Layout=myDvorak
|
||||
DefaultIM=keyboard-myDvorak
|
||||
Name=gDvorak
|
||||
|
||||
[Groups/1/Items/0]
|
||||
Layout=null
|
||||
Name=keyboard-myDvorak
|
||||
|
||||
[Groups/2]
|
||||
Default Layout=myDvorakFrench
|
||||
DefaultIM=keyboard-myDvorakFrench
|
||||
Name=gDvorakFrench
|
||||
|
||||
[Groups/2/Items/0]
|
||||
Layout=null
|
||||
Name=keyboard-myDvorakFrench
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
[Table]
|
||||
# Select Second Candidate
|
||||
SecondCandidate=
|
||||
# Select Third Candidate
|
||||
ThirdCandidate=
|
||||
# Page size
|
||||
PageSize=10
|
||||
# Commit after auto select candidates
|
||||
CommitAfterSelect=True
|
||||
# Commit buffer when deactivating input method
|
||||
CommitWhenDeactivate=True
|
||||
# Commit Invalid Segment
|
||||
CommitInvalidSegment=False
|
||||
# Use full width
|
||||
UseFullWidth=True
|
||||
# Ignore built in punctuation
|
||||
IgnorePunc=False
|
||||
# First candidate as Preedit
|
||||
FirstCandidateAsPreedit=False
|
||||
# Fix embedded preedit cursor at the beginning of the preedit
|
||||
PreeditCursorPositionAtBeginning=True
|
||||
# Key to trigger quickphrase
|
||||
QuickPhraseKey=
|
||||
# Text to trigger quickphrase
|
||||
QuickPhraseText=
|
||||
# Don't sort word shorter than
|
||||
NoSortInputLength=-1
|
||||
# Sort candidate by code length
|
||||
SortByCodeLength=True
|
||||
# Order policy
|
||||
OrderPolicy=Freq
|
||||
# Use system language model
|
||||
UseSystemLanguageModel=True
|
||||
# Sort candidates based on current context
|
||||
UseContextRelatedOrder=True
|
||||
# Wildcard matching Key
|
||||
MatchingKey=z
|
||||
# Prefix key to trigger Pinyin
|
||||
PinyinKey=
|
||||
# Auto select candidate
|
||||
AutoSelect=True
|
||||
# Length limit of selecting the only candidate
|
||||
AutoSelectLength=-2
|
||||
# Regular expression for selecting the only candidate
|
||||
AutoSelectRegex=
|
||||
# Auto select when no match is found
|
||||
NoMatchAutoSelectLength=0
|
||||
# Regular expression for auto select when no match is found
|
||||
NoMatchAutoSelectRegex=
|
||||
# Auto phrase length
|
||||
AutoPhraseLength=-1
|
||||
# Learn auto phrase with phrase
|
||||
AutoPhraseWithPhrase=False
|
||||
# Marker for auto phrase in the candidates
|
||||
MarkerForAutoPhrase=*
|
||||
# Save auto phrase after being typed for ... times
|
||||
SaveAutoPhraseAfter=4
|
||||
# Exact Match
|
||||
ExactMatch=False
|
||||
# Learning
|
||||
Learning=True
|
||||
# Display Hint for word
|
||||
Hint=False
|
||||
# Display custom hint
|
||||
DisplayCustomHint=True
|
||||
# Separator text between hint and candidate
|
||||
HintSeparator=" ~ "
|
||||
# Candidate List orientation
|
||||
CandidateLayoutHint=Vertical
|
||||
# Allow use keypad key as table input
|
||||
KeypadAsInput=False
|
||||
|
||||
[Table/PrevPage]
|
||||
0=Left
|
||||
|
||||
[Table/NextPage]
|
||||
0=Right
|
||||
|
||||
[Table/PrevCandidate]
|
||||
0=Up
|
||||
|
||||
[Table/NextCandidate]
|
||||
0=Down
|
||||
|
||||
[Table/DefaultCandidate]
|
||||
0=space
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue