Skip to content

Releases: Toxblh/MTMR

InputSource, sort in central, +del button, auto reload preset by changes

22 Apr 23:57
Compare
Choose a tag to compare

Native Widgets!

21 Apr 00:51
Compare
Choose a tag to compare

In the version added new 3 native widgets:

  • Weather
  • Currency
  • Battery

Updates

  • Added new action: openUrl with additional parameter url
  • Added new button: type: mute
  • FIxed reload for the central scroller
  • Updated default preset.

Added Open preset. Better work reload preset.

19 Apr 15:26
Compare
Choose a tag to compare
v0.10

v0.10 - added open preset, better work reload

Added Dock plugin

17 Apr 08:37
71ea945
Compare
Choose a tag to compare

touch bar shot 2018-04-17 at 09 33 13

"type": "dock"
work only align left or right

Fixed micro bugs

16 Apr 00:16
Compare
Choose a tag to compare
v0.8.1

Update default preset, now it's more useful and like a demo version.

Layout!

13 Apr 20:25
Compare
Choose a tag to compare

Layout!

Added parameter align for set you buttons left, right or in the centre scroller.

v0.6.1: Merge pull request #11 from ad/master

13 Apr 13:50
106f297
Compare
Choose a tag to compare

Sliders for volume and brightness. Many thanks to @ad

new types:

{
  type: "volume",
  type: "brightness",
}

Presets!

12 Apr 09:16
Compare
Choose a tag to compare

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!

10 Apr 08:22
Compare
Choose a tag to compare

Haptic Feedback!

09 Apr 22:04
Compare
Choose a tag to compare

Added haptic feedback with a strong power!