使用'mtmr'定制TouchBar

在介绍这款定制软件之前我要先吐槽一下苹果新一代的蝶式键盘,这一代蝶式键盘频繁出现的连击问题真是让人无语,我已经出现了两次按键连击情况,换了两次c面组件了,只能但愿保修期到了之后不再连击了- -

mtmr全称是’My TouchBar. My rules‘,是一款可以让你自定义Touch Bar的工具,说实话,用了快一年,我还是没有get到Touch Bar的作用,平常也就是局限于调调音量、亮度。这款软件的自由度还可以,虽说没有图形化界面,但是设置过程并不算复杂。

下载安装

  • 下载最新的release
  • 通过Homebrew安装brew cask install mtmr

设置

  • 作者内置的按键类型

    escape:esc按键

    exitTouchbar:退出到默认Touchbar界面

    brightnessUp:调高亮度

    brightnessDown:调低亮度

    volumeUp:调高音量

    volumeDown:调低音量

    mute:静音

    dock:显示当前打开应用,可以实现应用间的快速切换

  • Native Plugins

    battery:显示当前电量

    currency:一个适合币圈大佬的选项,可以显示当前比特币价格。

    1
    2
    3
    4
    5
    "type": "currency",
    "refreshInterval": 600,
    "align": "right",
    "from": "BTC",
    "to": "USD",

    weather:显示当前天气情况

    inputsource:显示输入法

  • Media Keys

    内置播放器的支持项

    previous:前一首

    play:播放、暂停

    next:后一首

  • AppleScript plugins

    sleep:睡眠

    displaySleep:显示器休眠

  • 图标

    只支持base64编码的图片

我的设置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
{ "type": "escape", "width":64, "align": "left" },
{ "type": "exitTouchbar", "width": 44, "align": "left" },
{
"type": "brightness",
"width": 80,
"align": "left",
"image": {
"base64":……
}
},
{ "type": "weather", "icon_type": "images", "units": "metric", "align": "left"},
{ "type": "dock", "width": 300, "align": "left" },
{ "type": "mute", "width": 40, "align": "right" },
{ "type": "battery", "align": "right" },
{ "type": "timeButton", "align": "right" }
]