nix!: refactored homeModules

This commit is contained in:
Primrose 2024-10-12 00:55:42 +02:00
parent 1c48edddf4
commit e9f8ccd2b3
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
50 changed files with 14 additions and 41 deletions

View file

@ -0,0 +1,7 @@
{
nix.gc = {
automatic = true;
frequency = "weekly";
options = "--delete-older-than 15d";
};
}

View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = [
pkgs.fcitx5-chinese-addons
pkgs.fcitx5-table-extra
];
};
xdg.configFile."fcitx5".source = ./fcitx;
}

View file

@ -0,0 +1,16 @@
# 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"

View file

@ -0,0 +1,48 @@
# vim:ft=ini
[Behavior]
ActiveByDefault=false
AllowInputMethodForPassword=false
AutoSavePeriod=30
CompactInputmethodInformation=true
CustomXkbOption=
DefaultPageSize=5
DisabledAddons=
EnabledAddons=
OverriedXkbOption=false
PreeditEnabledByDefault=true
PreloadInputMethod=true
ShareInputState=No
ShowFirstInputMethodInformation=true
ShowInputMethodInformation=true
ShowInputMethodInformationWhenFocusIn=false
ShowPreeditForPassword=false
[Hotkey]
EnumerateBackwardKeys=
EnumerateForwardKeys=
EnumerateSkipFirst=
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]

View file

@ -0,0 +1,33 @@
# vim:ft=ini
[GroupOrder]
0=gDvorak
1=gDvorakFrench
2=gCangjie
[Groups/0]
Default Layout=us
DefaultIM=cangjie3
Name=gCangjie
[Groups/0/Items/0]
Layout=
Name=cangjie3
[Groups/1]
Default Layout=myDvorak
DefaultIM=keyboard-myDvorak
Name=gDvorak
[Groups/1/Items/0]
Layout=
Name=keyboard-myDvorak
[Groups/2]
Default Layout=myDvorakFrench
DefaultIM=keyboard-myDvorakFrench
Name=gDvorakFrench
[Groups/2/Items/0]
Layout=
Name=keyboard-myDvorakFrench

View file

@ -0,0 +1,87 @@
[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

View file

@ -0,0 +1,27 @@
{
programs.feh = {
enable = true;
keybindings = {
prev_img = [
"Left"
"Up"
];
next_img = [
"Right"
"Down"
];
scroll_left = "h";
scroll_right = "l";
scroll_up = "k";
scroll_down = "j";
# mimic sioyek
zoom_in = "plus";
zoom_out = "minus";
zoom_fit = "=";
};
};
}

View file

@ -0,0 +1,24 @@
{
programs.sioyek = {
enable = true;
bindings = {
"move_up" = "k";
"move_down" = "j";
"move_left" = "l";
"move_right" = "h";
"screen_down" = [
"d"
"<C-d>"
];
"screen_up" = [
"u"
"<C-u>"
];
};
config.should_launch_new_window = "1";
};
}