Releases: Toxblh/MTMR
Releases · Toxblh/MTMR
InputSource, sort in central, +del button, auto reload preset by changes
v0.12 Fixed central sort. Close #33
Native Widgets!
In the version added new 3 native widgets:
- Weather
- Currency
- Battery
Updates
- Added new
action: openUrl
with additional parameterurl
- Added new button:
type: mute
- FIxed reload for the central scroller
- Updated default preset.
Added Open preset. Better work reload preset.
v0.10 v0.10 - added open preset, better work reload
Added Dock plugin
Fixed micro bugs
v0.8.1 Update default preset, now it's more useful and like a demo version.
Layout!
v0.6.1: Merge pull request #11 from ad/master
Sliders for volume and brightness. Many thanks to @ad
new types:
{
type: "volume",
type: "brightness",
}
Presets!
Presets
Added preset file for MTMR: open ~/Library/Application Support/MTMR/items.json
Built-in button types:
- escape
- exitTouchbar
- brightnessUp
- brightnessDown
- volumeDown
- volumeUp
Media Keys
- previous
- play
- next
AppleScript plugins
- weather
- battery
- sleep
- displaySleep
You can also make a custom buttons using these types
staticButton
"type": "staticButton",
"title": "esc",
staticImageButton
"type": "staticImageButton",
"image": "StringInbase64"
"title": "Finder",
appleScriptTitledButton
"type": "appleScriptTitledButton",
"refreshInterval": 60, //optional
"source": {
"filePath": "/Users/toxblh/Library/Application Support/MTMR/iTunes.nowPlaying.scpt",
// or
"inline": "tell application \"Finder\"\rmake new Finder window\rset target of front window to path to home folder as string\ractivate\rend tell",
// or
"base64": "StringInbase64"
},
timeButton
"type": "timeButton",
"formatTemplate": "HH:mm" //optional
flexSpace
– to easily split touch bar in two parts: left and right
"type": "flexSpace"
Actions:
hidKey
"action": "hidKey",
"keycode": 53,
keyPress
"action": "keyPress",
"keycode": 1,
appleScript
"action": "appleScript",
"actionAppleScript": {
"inline": "tell application \"Finder\"\rmake new Finder window\rset target of front window to path to home folder as string\ractivate\rend tell"
// "filePath" or "base64" will work as well
},
shellScript
"action": "shellScript",
"executablePath": "/usr/bin/pmset",
"shellArguments": "sleepnow", // optional
Additional paramaters:
width
allow to easily restrict how much room a particular button will take
"width": 34
Example configuration:
[
{ "type": "escape", "width": 110 },
{ "type": "exitTouchbar" },
{
"type": "brightnessUp",
"width": 36
},
{
"type": "staticButton",
"title": "🔆",
"action": "keyPress",
"keycode": 113,
"width": 36
},
{
"type": "appleScriptTitledButton",
"source": {
"filePath": "/Users/toxblh/Library/Application Support/MTMR/iTunes.nowPlaying.scpt"
},
"refreshInterval": 1
},
{
"type": "staticImageButton",
"title": "Finder",
"image": "%base64Finder%",
"action": "appleScript",
"actionAppleScript": {
"inline": "tell application \"Finder\"\rmake new Finder window\rset target of front window to path to home folder as string\ractivate\rend tell"
},
"width": 36
},
{
"type": "appleScriptTitledButton",
"source": {
"inline": "if application \"Safari\" is running then\r\ttell application \"Safari\"\r\t\trepeat with t in tabs of windows\r\t\t\ttell t\r\t\t\t\tif URL starts with \"https:\/\/music.yandex.ru\" and name does not end with \"на Яндекс.Музыке\" then\r\t\t\t\t\treturn name of t as text\r\t\t\t\tend if\r\t\t\tend tell\r\t\tend repeat\r\tend tell\rend if\rreturn \"\""
},
"refreshInterval": 1
},
{ "type": "flexSpace" },
{ "type": "play", "width": 36 },
{ "type": "next", "width": 36 },
{ "type": "sleep", "width": 36 },
{ "type": "weather", "refreshInterval": 1800, "width": 70 },
{ "type": "volumeDown", "width": 36 },
{ "type": "volumeUp", "width": 36 },
{ "type": "battery", "refreshInterval": 60 },
{ "type": "timeButton", "formatTemplate": "HH:mm", "width": 64 }
]
Hide from Dock, add to StatusBar!
Haptic Feedback!
Added haptic feedback with a strong power!