修改内容:
为了流畅使用termux增加数字键和常用符号
按键缩小
快捷键修改: 光标键(g)四向滑动移动光标,长按切换编辑键盘; 退格键上下滑动清空输入内容; z键下滑撤销操作; r键下滑重做已撤消操作; a键下滑选中当前行; d键下滑删除当前行… 具体可以看详细修改内容自己按喜好更改
patch:
colors:
1: &color1 0xff000000 # 黑
2: &color2 0xffffffff # 白
3: &color3 0xffe1e3e7 # 浅灰, 背景色
4: &color4 0xffacb2c2 # 中灰, bbs, 功能键背景
5: &color5 0xff131313 # 和黑没区别
6: &color6 0xff3266a0 # 蓝
7: &color7 0x00 # 透明
8: &color8 0xff838383 # 比中灰浅一点
"style/keyboard_height": 220 # 键盘高度
"style/comment_height": 10 # 编码提示区高度(备选状态栏高度)
"style/comment_text_size": 9 # 编码提示字体(备选状态栏字号)
"style/candidate_view_height": 25 # 候选区高度
"style/candidate_text_size": 16 # 候选区字号
"style/key_text_size": 18 # 按键字号
"style/key_long_text_size": 13 # 长标签字号(功能键字号)
"style/symbol_text_size": 8 # 按键符号字号
"style/preview_height": 66 # 按键弹出气泡高度
"style/preview_text_size": 40 # 按键弹出气泡字号
"preset_color_schemes/default/benter": *color4
"preset_color_schemes/default/gnb": *color4
# 浅色方案
"preset_color_schemes/default/hilited_key_back_color": *color4 # 高亮按键背景
"preset_color_schemes/default/hilited_key_text_color": *color3 # 高亮按键文本
"preset_color_schemes/default/preview_back_color": *color2 # 按键弹出气泡背景
"preset_color_schemes/default/preview_text_color": *color4 # 按键弹出气泡文本
# 深色方案
"preset_color_schemes/steam/hilited_candidate_back_color": 0xff313131 #高亮候选背景
"preset_color_schemes/steam/hilited_key_back_color": 0xff1c1c1c #高亮按键背景
"preset_color_schemes/steam/hilited_key_text_color": *color4 #高亮按键文本
"preset_keys/Mode_switch": {toggle: ascii_mode, functional: false, preview: '⌘', send: Mode_switch, states: [ 中, EN ]}
"preset_keys/BackSpace": {label: 'Back', preview: '⇦', repeatable: true, functional: false, send: BackSpace}
"preset_keys/Shift_L": {label: 'Shift', functional: false, send: Shift_L}
"preset_keys/space1": {repeatable: true, label: 'Space', preview: ' ', functional: false, send: space}
"preset_keys/Return1": {label: 'Enter', functional: false, send: Return}
"preset_keys/Keyboard_numberb": { label: '光标', functional: false, send: Eisu_toggle, select: numberb }
"preset_keys/delimiter": {label: "'", text: ''''}
"preset_keys/select_home": {label: '前半行', functional: false, send: Shift+Home}
"preset_keyboards/default":
author: "暖暖"
name: 36键默认布局
ascii_mode: 0
lock: true #切換程序時記憶鍵盤
width: 10
height: 68
key_text_offset_y: 1.5
keys:
- {click: '1', long_click: '!', swipe_up: '!', key_back_color: bh1, key_text_color: th1}
- {click: '2', long_click: '@', swipe_up: '@', key_back_color: bh1, key_text_color: th1}
- {click: '3', long_click: '#', swipe_up: '#', key_back_color: bh1, key_text_color: th1}
- {click: '4', long_click: '$', swipe_up: '$', key_back_color: bh1, key_text_color: th1}
- {click: '5', long_click: '%', swipe_up: '%', key_back_color: bh1, key_text_color: th1}
- {click: '6', long_click: '^', swipe_up: '^', key_back_color: bh1, key_text_color: th1}
- {click: '7', long_click: '&', swipe_up: '&', key_back_color: bh1, key_text_color: th1}
- {click: '8', long_click: '*', swipe_up: '*', key_back_color: bh1, key_text_color: th1}
- {click: '9', long_click: '(', swipe_up: '(){Left}', key_back_color: bh1, key_text_color: th1}
- {click: '0', long_click: ')', swipe_up: '(){Left}', key_back_color: bh1, key_text_color: th1}
- {click: q, long_click: '`', swipe_up: '`', key_back_color: bh2, key_text_color: th2}
- {click: w, long_click: '~', swipe_up: '~', key_back_color: bh2, key_text_color: th2}
- {click: e, long_click: '-', swipe_up: '-', key_back_color: bh2, key_text_color: th2}
- {click: r, long_click: '_', swipe_up: '_', swipe_down: redo, key_back_color: bh2, key_text_color: th2}
- {click: t, long_click: '=', swipe_up: "=", key_back_color: bh2, key_text_color: th2}
- {click: y, long_click: '+', swipe_up: '+', key_back_color: bh2, key_text_color: th2}
- {click: u, long_click: '\', swipe_up: '\', key_back_color: bh2, key_text_color: th2}
- {click: i, long_click: '|', swipe_up: '|', key_back_color: bh2, key_text_color: th2}
- {click: o, long_click: '[]{Left}', swipe_up: '[]{Left}', key_back_color: bh2, key_text_color: th2}
- {click: p, long_click: '{}{Left}', swipe_up: '{}{Left}', key_back_color: bh2, key_text_color: th2}
# 空隙
- {width: 5, key_back_color: bh3, key_text_color: th3}
- {click: a, long_click: select_all, swipe_up: select_all, swipe_down: '{End}{select_home}', key_back_color: bh3, key_text_color: th3}
- {click: s, key_back_color: bh3, key_text_color: th3}
- {click: d, long_click: Delete, swipe_up: Delete, swipe_down: '{End}{select_home}{Delete}', key_back_color: bh3, key_text_color: th3}
- {click: f, long_click: Page_Down, swipe_up: Page_Down, key_back_color: bh3, key_text_color: th3}
- {click: g, long_click: Keyboard_numberb, swipe_up: Up, swipe_down: Down, swipe_left: Left, swipe_right: Right, key_back_color: bh3, key_text_color: th3}
- {click: h, long_click: ';', swipe_up: ';', key_back_color: bh3, key_text_color: th3}
- {click: j, long_click: ':', swipe_up: ':', key_back_color: bh3, key_text_color: th3}
- {click: k, long_click: "'", swipe_up: "'", key_back_color: bh3, key_text_color: th3}
- {click: l, long_click: '"', swipe_up: '"', key_back_color: bh3, key_text_color: th3}
# 空隙
- {width: 5, key_back_color: bh3, key_text_color: th3}
- {click: Shift_L, composing: delimiter, width: 15, key_back_color: bbs, key_text_color: tbs, hilited_key_text_color: 'tbs', key_text_offset_y: 0}
- {click: z, long_click: Home, swipe_up: Home, swipe_down: undo, key_back_color: bh4, key_text_color: th4}
- {click: x, long_click: cut, swipe_up: cut, key_back_color: bh4, key_text_color: th4}
- {click: c, long_click: copy, swipe_up: copy, key_back_color: bh4, key_text_color: th4}
- {click: v, long_click: paste, swipe_up: paste_clip, swipe_down: liquid_keyboard_clipboard, key_back_color: bh4, key_text_color: th4}
- {click: b, long_click: Page_Up, swipe_up: Page_Up, key_back_color: bh4, key_text_color: th4}
- {click: n, key_back_color: bh4, key_text_color: th4}
- {click: m, long_click: End, swipe_up: End, key_back_color: bh4, key_text_color: th4}
- {click: BackSpace, swipe_up: '{select_all}{Delete}', swipe_down: '{select_all}{Delete}', width: 15, preview_back_color: bbs, key_back_color: bbs, key_text_color: tbs, key_text_offset_y: 0}
- {click: Keyboard_number, long_click: liquid_keyboard_tabs, width: 12.5, key_back_color: bgn, key_text_color: tgn}
- {click: Mode_switch, long_click: Theme_settings, swipe_down: Color_switch, swipe_up: Color_switch, width: 12.5, key_back_color: bgn, key_text_color: tgn}
- {click: ',', label: ',', long_click: '<', swipe_up: '<', key_back_color: bh3, key_text_color: th3}
- {click: space1, swipe_left: "Left", swipe_right: "Right", swipe_up: Schema_switchcn, width: 30, key_back_color: bkg, key_text_color: benter, key_text_size: 8}
- {click: '.', label: '.', long_click: '>', swipe_up: '>', key_back_color: bh3, key_text_color: th3}
- {click: '/', long_click: '?', swipe_up: '?', key_text_size: "18", key_back_color: bh3, key_text_color: th3}
- {click: Return1, swipe_up: Escape, width: 15, key_back_color: benter, key_text_color: tenter, key_text_offset_y: 0}
安装: 把文件保存到/sdcard/rime/tongwenfeng.trime.custom.yaml后切换到其它输入法再切换回来就可以生效了
卸载: 把该文件删除后切换一次输入法