TMK 固件 改布局及刷固件
TMK 是比较早的一种固件方案,现在直接用 TMK 方案的不太多见了。
刷 TMK 固件,简单来说需要四步:
- 准备键盘布局及 Raw data
- 把 Raw data 转为 eep 固件文件
- 电脑安装工具
tkg-toolkit
,并进行配置 - 给键盘刷固件
准备键盘布局及 Raw data
打开 Keyboard Layout Editor 网站(简称 KLE)。由于 TMK 固件支持的键盘不多,大概率都是现有的老键盘(新键盘不会使用 TMK 方案),所以你的键盘应该存在默认配置。
从顶部的 Preset
中,选择接近你键盘的布局,我这里选择了 Default 60%
。尽量选择接近的布局方案,这样后续修改工作量会比较少,也不太容易出错。
本文将使用的 标准
层方案,非网上的 简单
层方案,区别在于 标准
方案会配置多层,生成多个 Raw data,更好理解。
首先是左下角的修饰键,我改成了 Ctrl
Alt
Gui
。修改方法很简单,点击键盘上的按键,直接在下面的 Top Legend
处修改即可。
Propertices 中的各个模式,在标 准方案下,其实没什么功能区别,仅仅是在键盘上展示位置不同。
而每一行的三个栏位,对应着做对齐、居中对齐、右对齐。
这都是仅仅为了键盘图片展示更好看而已。
Top Legend:顶部展示(正刻)
Center Legend: 中间展示(正刻)
Bottom Legend:底部展示(正刻)
Front Legend:侧面展示(侧刻)
按键调整的话,注意输入内容,它是不可以随便输入的。
比如:
Top Legend 输入 !
Bottom Legend 输入 3
这就不是一个合规组合。因为数字 3 对应的是 #
具体支持的按键名字,可以参考这里:https://tkg.io/#help
之后,我把 右侧 Shift
修改长度,并增加一个按键。点击 右侧 Shift
,把下面的宽度 width
从 2.75
改成了 1.75
,后续可以再增加一个宽度为 1
的按键。
点击左上角蓝色的 Add Key
,增加一个按键。根据我键盘的位置,我把下面的配置修改为 X
坐标为 14
,Y
坐标为 4
,Top Legend
为 Delete
。
最后,我把左 上角按键改了下,还有移除了右下角修饰键,改成了方向键。最终效果如下:
这样,我们就完成了第一层的布局。切换到 Raw data 选项卡,可以复制出来当前布局文件,注意保存好,后续要用到。以后也可以直接把之前的 Raw data 复制进去,相当于读档。
此外可以点击右上角绿色的 Download
,选择导出键盘的图片,防止以后忘记了自己的键盘布局。
我这里的 Raw data 是:
["Esc","!\n1","@\n2","#\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=",{w:2},"Backspace"],
[{w:1.5},"Tab","Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"|\n\\"],
[{w:1.75},"Caps Lock","A","S","D","F","G","H","J","K","L",":\n;","\"\n'",{w:2.25},"Enter"],
[{w:2.25},"Shift","Z","X","C","V","B","N","M","<\n,",">\n.","?\n/",{a:5,w:1.75},"↑",{a:4},"Delete"],
[{w:1.25},"Ctrl",{w:1.25},"Alt",{w:1.25},"Gui",{w:6.25},"Space",{w:1.25},"Fn0",{a:5,w:1.25},"←",{w:1.25},"↓",{w:1.25},"→"]
用同样的方法,可以再制作第二层。我这里不再演示了,直接贴下我的第二层 Raw data:
["~\n`","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12",{w:2},"Delete"],
[{w:1.5},"Tab",{a:7},"",{a:4},"↑",{a:7},"","","","","","","","","","",{w:1.5},""],
[{a:4,w:1.75},"Caps Lock","←","↓","→",{a:7},"","","","","","","","",{a:4,w:2.25},"Enter"],
[{w:2.25},"Shift","Fn1","Fn2","Fn3","Fn4","Fn5","VolDn","VolUp","Mute",{a:7},"","",{a:4,w:1.75},"PgUp","Ins"],
[{w:1.25},"Ctrl",{w:1.25},"Alt",{w:1.25},"Gui",{w:6.25},"Space",{w:1.25},"Fn0",{w:1.25},"Home",{w:1.25},"PgDn",{w:1.25},"End"]
如果需要,你可以制作更多层。