diff --git a/home/.config/fcitx5/conf/chttrans.conf b/home/.config/fcitx5/conf/chttrans.conf new file mode 100644 index 0000000..410352f --- /dev/null +++ b/home/.config/fcitx5/conf/chttrans.conf @@ -0,0 +1,11 @@ +# Translate engine +Engine=OpenCC +# Toggle key +Hotkey= +# Enabled Input Methods +EnabledIM= +# OpenCC profile for Simplified to Traditional +OpenCCS2TProfile= +# OpenCC profile for Traditional to Simplified +OpenCCT2SProfile= + diff --git a/home/.config/fcitx5/conf/classicui.conf b/home/.config/fcitx5/conf/classicui.conf new file mode 100644 index 0000000..ccbed33 --- /dev/null +++ b/home/.config/fcitx5/conf/classicui.conf @@ -0,0 +1,27 @@ +# Vertical Candidate List +Vertical Candidate List=False +# Use Per Screen DPI +PerScreenDPI=True +# Use mouse wheel to go to prev or next page +WheelForPaging=False +# Font +Font="Hiragino Sans GB Light 10" +# Menu Font +MenuFont="Hiragino Sans GB Light 10" +# Tray Font +TrayFont="Sans Bold 10" +# Tray Label Outline Color +TrayOutlineColor=#000000 +# Tray Label Text Color +TrayTextColor=#ffffff +# Prefer Text Icon +PreferTextIcon=False +# Show Layout Name In Icon +ShowLayoutNameInIcon=True +# Use input method language to display text +UseInputMethodLangaugeToDisplayText=True +# Theme +Theme=plain-red +# Force font DPI on Wayland +ForceWaylandDPI=0 + diff --git a/home/.config/fcitx5/conf/clipboard.conf b/home/.config/fcitx5/conf/clipboard.conf new file mode 100644 index 0000000..277cee4 --- /dev/null +++ b/home/.config/fcitx5/conf/clipboard.conf @@ -0,0 +1,7 @@ +# 触发键 +TriggerKey= +# 粘贴主选区 +PastePrimaryKey= +# 项目个数 +Number of entries=5 + diff --git a/home/.config/fcitx5/conf/fullwidth.conf b/home/.config/fcitx5/conf/fullwidth.conf new file mode 100644 index 0000000..94535d8 --- /dev/null +++ b/home/.config/fcitx5/conf/fullwidth.conf @@ -0,0 +1,3 @@ +# 切换键 +Hotkey= + diff --git a/home/.config/fcitx5/conf/imselector.conf b/home/.config/fcitx5/conf/imselector.conf new file mode 100644 index 0000000..0bd6f3d --- /dev/null +++ b/home/.config/fcitx5/conf/imselector.conf @@ -0,0 +1,9 @@ +# 触发键 +TriggerKey= +# 当前输入上下文的触发键 +TriggerKeyLocal= +# 切换到当前输入法到第...个输入法的按键 +SwitchKey= +# 切换到当前局部输入法到第...个输入法的按键 +SwitchKeyLocal= + diff --git a/home/.config/fcitx5/conf/keyboard.conf b/home/.config/fcitx5/conf/keyboard.conf new file mode 100644 index 0000000..0be8797 --- /dev/null +++ b/home/.config/fcitx5/conf/keyboard.conf @@ -0,0 +1,22 @@ +# 页大小 +PageSize=5 +# 上一个候选词 +PrevCandidate= +# 下一个候选词 +NextCandidate= +# 在输入提示中启用 Emoji +EnableEmoji=True +# 在快速输入中启用颜文字 +EnableQuickPhraseEmoji=True +# 选词修饰键 +Choose Modifier=None +# 切换提示模式 +Hint Trigger= +# 触发一次提示模式 +One Time Hint Trigger= +# 用长按来输入特殊字符 +EnableLongPress=False + +[LongPressBlocklist] +0=konsole + diff --git a/home/.config/fcitx5/conf/notificationitem.conf b/home/.config/fcitx5/conf/notificationitem.conf new file mode 100644 index 0000000..90d7738 --- /dev/null +++ b/home/.config/fcitx5/conf/notificationitem.conf @@ -0,0 +1,3 @@ +# 在使用键盘或者图标不可用时显示标签 +Show Label=False + diff --git a/home/.config/fcitx5/conf/notifications.conf b/home/.config/fcitx5/conf/notifications.conf new file mode 100644 index 0000000..6e7d1b9 --- /dev/null +++ b/home/.config/fcitx5/conf/notifications.conf @@ -0,0 +1,3 @@ +# Hidden Notifications +HiddenNotifications= + diff --git a/home/.config/fcitx5/conf/pinyin.conf b/home/.config/fcitx5/conf/pinyin.conf new file mode 100644 index 0000000..c465359 --- /dev/null +++ b/home/.config/fcitx5/conf/pinyin.conf @@ -0,0 +1,113 @@ +# Shuangpin Profile +ShuangpinProfile=Ziranma +# Show current shuangpin mode +ShowShuangpinMode=True +# Page size +PageSize=5 +# Enable Spell +SpellEnabled=False +# Enable Emoji +EmojiEnabled=True +# Enable Chaizi +ChaiziEnabled=True +# Enable Characters in Unicode CJK Extension B +ExtBEnabled=True +# Enable Cloud Pinyin +CloudPinyinEnabled=True +# Cloud Pinyin Index +CloudPinyinIndex=2 +# Show preedit within application +PreeditInApplication=True +# Fix embedded preedit cursor at the beginning of the preedit +PreeditCursorPositionAtBeginning=True +# Show complete pinyin in preedit +PinyinInPreedit=False +# Enable Prediction +Prediction=False +# Prediction Size +PredictionSize=10 +# Action when switching input method +SwitchInputMethodBehavior="Commit current preedit" +# Forget word +ForgetWord= +# Previous Page +PrevPage= +# Next Page +NextPage= +# Previous Candidate +PrevCandidate= +# Next Candidate +NextCandidate= +# Select 2nd Candidate +SecondCandidate= +# Select 3rd Candidate +ThirdCandidate= +# Use Keypad as Selection key +UseKeypadAsSelection=False +# Choose Character from Phrase +ChooseCharFromPhrase= +# Use BackSpace to cancel the selection +BackSpaceToUnselect=True +# Filter by stroke +FilterByStroke= +# Number of Sentences +Number of sentence=2 +# Prompt long word length when input length over (0 for disable) +LongWordLengthLimit=4 +# Key to trigger quickphrase +QuickPhraseKey= +# Use V to trigger quickphrase +VAsQuickphrase=True +# FirstRun +FirstRun=False + +[QuickPhrase trigger] +0=www. +1=ftp. +2=http: +3=mail. +4=bbs. +5=forum. +6=https: +7=ftp: +8=telnet: +9=mailto: + +[Fuzzy] +# ue -> ve +VE_UE=True +# Common Typo +NG_GN=True +# Inner Segment (xian -> xi'an) +Inner=True +# Inner Segment for Short Pinyin (qie -> qi'e) +InnerShort=True +# Match partial finals (e -> en, eng, ei) +PartialFinal=True +# Match partial shuangpin if input length is longer than 4 +PartialSp=False +# u <-> v +V_U=False +# an <-> ang +AN_ANG=False +# en <-> eng +EN_ENG=False +# ian <-> iang +IAN_IANG=False +# in <-> ing +IN_ING=False +# u <-> ou +U_OU=False +# uan <-> uang +UAN_UANG=False +# c <-> ch +C_CH=False +# f <-> h +F_H=False +# l <-> n +L_N=False +# s <-> sh +S_SH=False +# z <-> zh +Z_ZH=False + diff --git a/home/.config/fcitx5/conf/punctuation.conf b/home/.config/fcitx5/conf/punctuation.conf new file mode 100644 index 0000000..d7a00a0 --- /dev/null +++ b/home/.config/fcitx5/conf/punctuation.conf @@ -0,0 +1,10 @@ +# Half width punctuation after latin letter or number +HalfWidthPuncAfterLetterOrNumber=True +# Type paired punctuations together (e.g. Quote) +TypePairedPunctuationsTogether=False +# Enabled +Enabled=True + +[Hotkey] +0=Control+period + diff --git a/home/.config/fcitx5/conf/quickphrase.conf b/home/.config/fcitx5/conf/quickphrase.conf new file mode 100644 index 0000000..ed64e92 --- /dev/null +++ b/home/.config/fcitx5/conf/quickphrase.conf @@ -0,0 +1,9 @@ +# 触发键 +TriggerKey= +# 选词修饰键 +Choose Modifier=None +# 启用拼写检查 +Spell=False +# 备选拼写检查语言 +FallbackSpellLanguage=en + diff --git a/home/.config/fcitx5/conf/rime.conf b/home/.config/fcitx5/conf/rime.conf new file mode 100644 index 0000000..e34ce52 --- /dev/null +++ b/home/.config/fcitx5/conf/rime.conf @@ -0,0 +1,11 @@ +# 在程序中显示预编辑文本 +PreeditInApplication=True +# 取消激活输入法时提交当前文本。 +Commit when deactivate.=True +# 自动加载可用插件 +AutoloadPlugins=True +# 插件 +Plugins= +# 模块 +Modules= + diff --git a/home/.config/fcitx5/conf/table.conf b/home/.config/fcitx5/conf/table.conf new file mode 100644 index 0000000..1ab4f0f --- /dev/null +++ b/home/.config/fcitx5/conf/table.conf @@ -0,0 +1,9 @@ +# 查找拼音 +LookupPinyinKey= + +[ModifyDictionaryKey] +0=Control+Alt+equal + +[ForgetWord] +0=Control+Alt+minus + diff --git a/home/.config/fcitx5/conf/xim.conf b/home/.config/fcitx5/conf/xim.conf new file mode 100644 index 0000000..2bdcfbf --- /dev/null +++ b/home/.config/fcitx5/conf/xim.conf @@ -0,0 +1,3 @@ +# 使用 On The Spot 风格 (需要重启) +UseOnTheSpot=False + diff --git a/home/.config/fcitx5/config b/home/.config/fcitx5/config index baf8473..1854b2b 100644 --- a/home/.config/fcitx5/config +++ b/home/.config/fcitx5/config @@ -59,4 +59,5 @@ EnabledAddons= # Force Disabled Addons DisabledAddons= # Preload input method to be used by default -PreloadInputMethod=True \ No newline at end of file +PreloadInputMethod=True + diff --git a/home/.config/fcitx5/profile b/home/.config/fcitx5/profile index af51f14..94077c7 100644 --- a/home/.config/fcitx5/profile +++ b/home/.config/fcitx5/profile @@ -19,4 +19,5 @@ Name=wbx Layout= [GroupOrder] -0=Default \ No newline at end of file +0=Default + diff --git a/home/.config/fcitx5/table/wbx.conf b/home/.config/fcitx5/table/wbx.conf new file mode 100644 index 0000000..7ec6cc4 --- /dev/null +++ b/home/.config/fcitx5/table/wbx.conf @@ -0,0 +1,78 @@ +[Table] +# Prev Candidate +PrevCandidate= +# Next Candidate +NextCandidate= +# Select Second Candidate +SecondCandidate= +# Select Third Candidate +ThirdCandidate= +# Page size +PageSize=5 +# Commit after auto select candidates +CommitAfterSelect=True +# Commit buffer when deactivating input method +CommitWhenDeactivate=True +# Commit Invalid Segment +CommitInvalidSegment=False +# Use full width +UseFullWidth=False +# 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=semicolon +# Text to trigger quickphrase +QuickPhraseText=ABCDEFGHIJLKLMNOPQRSTUVWXYZ +# Don't sort word shorter than +NoSortInputLength=2 +# Order policy +OrderPolicy=Freq +# Use system language model +UseSystemLanguageModel=True +# Sort candidates based on current context +UseContextRelatedOrder=False +# Wildcard matching Key +MatchingKey=z +# Prefix key to trigger Pinyin +PinyinKey=grave +# Auto select candidate +AutoSelect=True +# Length limit of selecting the only candidate +AutoSelectLength=-1 +# 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=4 +# Learn auto phrase with phrase +AutoPhraseWithPhrase=False +# Marker for auto phrase in the candidates +MarkerForAutoPhrase=* +# Save auto phrase after being typed for ... times +SaveAutoPhraseAfter=3 +# Exact Match +ExactMatch=False +# Learning +Learning=True +# Display Hint for word +Hint=True +# Display custom hint +DisplayCustomHint=False +# Separator text between hint and candidate +HintSeparator= +# Candidate List orientation +CandidateLayoutHint=Horizontal + +[Table/PrevPage] +0=minus + +[Table/NextPage] +0=equal + diff --git a/home/.local/bin/npm b/home/.local/bin/npm new file mode 100755 index 0000000..3fac007 --- /dev/null +++ b/home/.local/bin/npm @@ -0,0 +1,21 @@ +#!/bin/bash + +NPM=/usr/bin/npm + +case "$1" in + i|install|show|view|up|update|outdated|init|create) + $NPM --registry=https://registry.npmmirror.com "$@" + ;; + + sync) + curl -I "https://registry-direct.npmmirror.com/$2/sync?sync_upstream=true" -X 'PUT' -H 'authority: registry-direct.npmmirror.com' -H 'accept: application/json, text/javascript, */*; q=0.01' -H 'accept-language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7' -H 'content-length: 0' -H 'origin: https://npmmirror.com' -H 'referer: https://npmmirror.com/' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' --compressed + echo "同步 $2 成功~~" + echo "" + ;; + origin) + $NPM search $2 + ;; + *) + $NPM "$@" + ;; +esac \ No newline at end of file diff --git a/home/.local/share/fcitx5/punctuation/punc.mb.zh_CN b/home/.local/share/fcitx5/punctuation/punc.mb.zh_CN new file mode 100644 index 0000000..ca6e81d --- /dev/null +++ b/home/.local/share/fcitx5/punctuation/punc.mb.zh_CN @@ -0,0 +1,24 @@ +. 。 +, , +? ? +" " +: : +; ; +' ' +< 《 +> 》 +\ 、 +! ! +$ $ +^ …… +_ _ +( ( +) ) +[ 【 +] 】 +~ ~ +* * +& & +# # +@ @ +` ` diff --git a/home/.local/share/fcitx5/table/wbx.history b/home/.local/share/fcitx5/table/wbx.history new file mode 100644 index 0000000..458b07c Binary files /dev/null and b/home/.local/share/fcitx5/table/wbx.history differ diff --git a/home/.local/share/fcitx5/table/wbx.main.dict b/home/.local/share/fcitx5/table/wbx.main.dict new file mode 100644 index 0000000..df51f88 Binary files /dev/null and b/home/.local/share/fcitx5/table/wbx.main.dict differ diff --git a/home/.local/share/fcitx5/table/wbx.user.dict b/home/.local/share/fcitx5/table/wbx.user.dict new file mode 100644 index 0000000..c368e55 Binary files /dev/null and b/home/.local/share/fcitx5/table/wbx.user.dict differ diff --git a/home/.local/share/fcitx5/themes/plain-red/arrow.png b/home/.local/share/fcitx5/themes/plain-red/arrow.png new file mode 100644 index 0000000..2597ef9 Binary files /dev/null and b/home/.local/share/fcitx5/themes/plain-red/arrow.png differ diff --git a/home/.local/share/fcitx5/themes/plain-red/next.png b/home/.local/share/fcitx5/themes/plain-red/next.png new file mode 100644 index 0000000..bef4944 Binary files /dev/null and b/home/.local/share/fcitx5/themes/plain-red/next.png differ diff --git a/home/.local/share/fcitx5/themes/plain-red/prev.png b/home/.local/share/fcitx5/themes/plain-red/prev.png new file mode 100644 index 0000000..b721317 Binary files /dev/null and b/home/.local/share/fcitx5/themes/plain-red/prev.png differ diff --git a/home/.local/share/fcitx5/themes/plain-red/radio.png b/home/.local/share/fcitx5/themes/plain-red/radio.png new file mode 100644 index 0000000..9b6c5ab Binary files /dev/null and b/home/.local/share/fcitx5/themes/plain-red/radio.png differ diff --git a/home/.local/share/fcitx5/themes/plain-red/theme.conf b/home/.local/share/fcitx5/themes/plain-red/theme.conf new file mode 100644 index 0000000..0594907 --- /dev/null +++ b/home/.local/share/fcitx5/themes/plain-red/theme.conf @@ -0,0 +1,72 @@ +[Metadata] +Name=plain-red +Version=1 +Author=yutent +Description=Fctix5 朴素主题 +ScaleWithDPI=True + +[InputPanel] +# 字体(实际上没啥用,不读这里的配置) +Font=Sans 12 +# 非选中候选字颜色 +NormalColor=#64748B +# 高亮前景颜色(输入字符颜色) +HighlightColor=#ffffff +# +Spacing=3 + +[InputPanel/TextMargin] +# 候选字对左边距 +Left=12 +# 候选字对右边距 +Right=12 +# 候选字向上边距 +Top=12 +# 候选字向下边距 +Bottom=12 + +[InputPanel/Background] +Color=#ffffff +BorderColor=#64748b59 +BorderWidth=1 + + +[InputPanel/Background/Margin] +Left=2 +Right=2 +Top=2 +Bottom=2 + +[InputPanel/Highlight] +# 候选词背景色 +Color=#fc7661 + +[InputPanel/Highlight/Margin] +# 高亮区域左边距 +Left=12 +# 高亮区域右边距 +Right=12 +# 高亮区域上边距 +Top=12 +# 高亮区域下边距 +Bottom=12 + + +[InputPanel/PrevPage] +Image=prev.png + +[InputPanel/PrevPage/ClickMargin] +Left=5 +Right=5 +Top=4 +Bottom=4 + +[InputPanel/NextPage] +Image=next.png + +[InputPanel/NextPage/ClickMargin] +Left=5 +Right=5 +Top=4 +Bottom=4 +