当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 0

jcleng / squirrel.custom.yaml
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

squirrel.custom.yaml

# 我的macos鼠须管配置文件
# 文件位置,右上角用户设定打开即可,会显示该文件夹,创建 squirrel.custom.yaml 文件即可
/Users/jcleng/Library/Rime/squirrel.custom.yaml
# 输入状态下f4可选择输入方式

# 配置
https://scomper.me/gtd/shu-xu-guan-shu-ru-fa-de-xin-pei-se
# 更多主题 推荐的开源项目
https://github.com/wongdean/rime-settings
# 在线生成
https://gjrobert.github.io/Rime-See-Me-squirrel/

weasel.custom.yaml

# windos小狼毫的配置皮肤文件

default.custom.yaml

# 通用配置按键文件
## Linux-fcitx5的配置,,手动创建即可 ~/.local/share/fcitx5/rime/default.custom.yaml 配置重启之后会重新生成当前目录的:build/default.yaml
  • 安卓同文输入法配置
# 基本配置
default.yaml
# 然后是对应的主题配置,我使用 [极致简约] 对应的配置文件就是(还有资源文件,如背景等在rime\backgrounds目录里面,,这里没有提交上来):
极致简约.trime.yaml
  • 配置快捷键输入时间emoji等
# 默认配置的方案是 default.custom.yaml, schema是: luna_pinyin_simp
patch:
  schema_list:
    - schema: luna_pinyin_simp # 只保留简化字

# 配置快捷键那么就需要[部署],然后复制对应的 build\luna_pinyin_simp.schema.yaml 到 配置根目录的luna_pinyin_simp.schema.yaml
# 然后以后的配置就配置 luna_pinyin_simp.schema.yaml 文件了

# 根目录新增 rime.lua 文件
function time_translator(input, seg)
    if (input == "rq") then
       local cand = Candidate("date", seg.start, seg._end, os.date("%Y/%m/%d"), "")
       cand.quality = 1
       yield(cand)
    end
    if (input == "sj") then
       local cand = Candidate("time", seg.start, seg._end, os.date("%H:%M"), " ")
       cand.quality = 1
       yield(cand)
    end
end

# 配置 luna_pinyin_simp.schema.yaml 增加对应的函数即可
engine/translators:
  - lua_translator@time_translator

# 重新部署之后输入rq或者sj即可
# 配置文档: https://github.com/LEOYoon-Tsaw/Rime_collections/blob/master/Rime_description.md
  • 配置lua拼音
新增文件: lua\reverse.lua

rime.lua 增加:
reverse_lookup_filter = require("reverse")

luna_pinyin_simp.schema.yaml 增加:
engine:
  filters:
    - simplifier
    - uniquifier
    - lua_filter@reverse_lookup_filter

# 这里有很多配置
https://github.com/hchunhui/librime-lua/blob/master/sample/rime.lua
# 复制然后本项目的主题文件: weasel.custom.yaml

# 然后合并本项目 default.custom.yaml 文件
# 注意是在patch下,与schema_list同级
# 无需配置punctuator的full_shape和half_shape


  menu/page_size: 9 # 输入框待选项个数
  ascii_composer/switch_key:  # ctrl&&shift 切换键效果
    Caps_Lock: clear # 清屏幕
    Shift_L: commit_code # 上档code
    Control_L: noop # 不处理
    Shift_R: inline_ascii # 切换字符不上档
    Control_R: noop # 不处理
  key_binder:
    bindings:
      - { when: composing, accept: Control+c, send: Escape } # ctrl-c 清屏
      - { when: composing, accept: -, send: Page_Up } # 候选词分页
      - { when: composing, accept: =, send: Page_Down } # 候选词分页
      - { when: always, accept: Control+period, toggle: ascii_punct } # 切换西文/中文标点 Ctrl + .
/home/jcleng/.config/fcitx5/conf/rime.conf

# 在程序中显示预编辑文本
PreeditInApplication=False
# 取消激活输入法时提交当前文本。
Commit when deactivate=False
# 自动加载可用插件
AutoloadPlugins=False
# 插件
Plugins=
# 模块
Modules=


/home/jcleng/.config/fcitx5/conf/classicui.conf 使用主题 Material-Color

# 垂直候选列表
Vertical Candidate List=False
# 按屏幕 DPI 使用
PerScreenDPI=True
# 使用鼠标滚轮翻页
WheelForPaging=False
# 字体 和字体大小,需重启进程
Font="Sans 12"
# 菜单字体
MenuFont="Sans 12"
# 使用输入法的语言来显示文字
UseInputMethodLangaugeToDisplayText=True
# 主题
Theme=Material-Color


/home/jcleng/.local/share/fcitx5/themes/Material-Color/theme.conf 主题文件

[Metadata]
Name=Material-Color
Version=0.1
Author=hosxy
Description=Material Color Theme
ScaleWithDPI=True

[InputPanel]
# 字体
# Font=Sans 13
Font=Sans 13
# 非选中候选字颜色
NormalColor=#ffffff
# 选中候选字颜色
HighlightCandidateColor=#F92772
# 高亮前景颜色(输入字符颜色)
HighlightColor=#75BFF4
# 输入字符背景颜色
HighlightBackgroundColor=#222827
#
Spacing=3

[InputPanel/TextMargin]
# 候选字对左边距
Left=10
# 候选字对右边距
Right=10
# 候选字向上边距
Top=6
# 候选字向下边距
Bottom=6

[InputPanel/Background]
Color=#272822
BorderColor=#AE81FF
BorderWidth=0

[InputPanel/Background/Margin]
Left=2
Right=2
Top=2
Bottom=2

[InputPanel/Highlight]
Color=#000000

[InputPanel/Highlight/Margin]
# 高亮区域左边距
Left=10
# 高亮区域右边距
Right=10
# 高亮区域上边距
Top=7
# 高亮区域下边距
Bottom=7

[Menu/Background]
Color=#ffffff

[Menu/Background/Margin]
Left=2
Right=2
Top=2
Bottom=2

[Menu/ContentMargin]
Left=2
Right=2
Top=2
Bottom=2

[Menu/Highlight]
Color=#000000

[Menu/Highlight/Margin]
Left=10
Right=10
Top=5
Bottom=5

[Menu/Separator]
Color=#000000

[Menu/CheckBox]
Image=radio.png

[Menu/SubMenu]
Image=arrow.png

[Menu/TextMargin]
Left=5
Right=5
Top=5
Bottom=5
MIT License Copyright (c) 2020 jcleng Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

mac鼠须管配置 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jcleng/squirrel.custom.yaml.git
git@gitee.com:jcleng/squirrel.custom.yaml.git
jcleng
squirrel.custom.yaml
squirrel.custom.yaml
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891