mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix!: refactored homeModules
This commit is contained in:
parent
1c48edddf4
commit
e9f8ccd2b3
50 changed files with 14 additions and 41 deletions
7
nix/homeModules/extra/auto-gc/default.nix
Normal file
7
nix/homeModules/extra/auto-gc/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
frequency = "weekly";
|
||||
options = "--delete-older-than 15d";
|
||||
};
|
||||
}
|
||||
13
nix/homeModules/extra/fcitx5/default.nix
Normal file
13
nix/homeModules/extra/fcitx5/default.nix
Normal 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;
|
||||
}
|
||||
16
nix/homeModules/extra/fcitx5/fcitx/conf/classicui.conf
Normal file
16
nix/homeModules/extra/fcitx5/fcitx/conf/classicui.conf
Normal 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"
|
||||
48
nix/homeModules/extra/fcitx5/fcitx/config
Normal file
48
nix/homeModules/extra/fcitx5/fcitx/config
Normal 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]
|
||||
33
nix/homeModules/extra/fcitx5/fcitx/profile
Normal file
33
nix/homeModules/extra/fcitx5/fcitx/profile
Normal 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
|
||||
87
nix/homeModules/extra/fcitx5/fcitx/table/cangjie3.conf
Normal file
87
nix/homeModules/extra/fcitx5/fcitx/table/cangjie3.conf
Normal 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
|
||||
|
||||
27
nix/homeModules/extra/feh/default.nix
Normal file
27
nix/homeModules/extra/feh/default.nix
Normal 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 = "=";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
24
nix/homeModules/extra/sioyek/default.nix
Normal file
24
nix/homeModules/extra/sioyek/default.nix
Normal 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";
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue