Skip to content

Commit

Permalink
Merge branch 'master' into patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
Toxblh authored Jun 21, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
sei-vsarvepalli Vijay Sarvepalli
2 parents 5150044 + f03fee5 commit b90e18b
Showing 30 changed files with 774 additions and 4 deletions.
1 change: 1 addition & 0 deletions JieqiangHe/screenshot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![](https://hejieqiang-1257582781.cos.ap-nanjing.myqcloud.com/202303130146260.png)
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1149,6 +1149,42 @@ Comment out 2 lines in items.json configuration to get the Extended version with

---

[@thdctrt preset](thdctrt/items.json)

### Advanced preset with Smart Home controls

Home
![](thdctrt/thdctrt-mtmr__home.png)

Dock Page
![](thdctrt//thdctrt-mtmr__dock.png)

HomeKit Page
![](thdctrt//thdctrt-mtmr__homekit.png)

*Features*
- Dock on a separate page
- Dedicated HomeKit Page — control your Smart Home from Touch Bar! (requires set up HomeKit controlling Shortcuts, i.e. simple conditional switch on/off).
- Active Noise Cancelling control via pressing the Headphones button (works with AirPods Pro or Beats Solo Pro via NoiseBuddy)
- Spotify widget — single tap for play/pause, long tap to open Spotify window, plus next track button (prev track button also available, uncomment it in configs to use it). Thanks to [@bobrosoft](https://github.com/bobrosoft) for [Spotify script](https://github.com/Toxblh/MTMR-presets/blob/master/bobrosoft).
- Input source icon
- MTMR native battery/charging widget
- Date & Time widget with two timezones (actually it's two widgets side by side). Set desired timezones in config (by default your computer timezone and Moscow Time). Tap on the first widget opens Calendar, and tap on the second launches the native macOS Countdown Timer through the 'Start Timer' Shortcut.
- Keyboard illumination controls
- Sound mute button
- Show Desktop button — alternative for 'spread with 4 fingers' touchpad gesture and ⌘+F4 shortcuts on non-Touch Bar Macs. Very useful for dragging&dropping files to full-screen apps (Safari, VSCode, Photoshop, etc).


*How To*
- Install NoiseBuddy: https://github.com/insidegui/NoiseBuddy
- Install iStats: https://github.com/Chris911/iStats
- Create /Users/Shared/MTMR/ older and drop there `spotify.scpt`
- Of course, add `items.json` as MTMR preset
- Set up the NoiseBuddy shortcut on `⌃ ⌥ ⇧ ⌘ + {` as [shown here](thdctrt/noisebuddy-settings.png). The main idea is to use a hotkey you won't definitely ever need. If you want to change it, don't forget to tweak it in preset as well.
- To use the Timer function, you need to add Start Timer Shortcut to your Shortcuts by launching it.

---

[@JieqiangHe](JieqiangHe/JieqiangHe.json)
![](https://hejieqiang-1257582781.cos.ap-nanjing.myqcloud.com/202303130146260.png)

13 changes: 13 additions & 0 deletions klaus_preset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Klaus' minimalist Configuration

## The bar.

![The Bar](images/klausMTMRpreset.png)

- Backwards/pause-play/forwards Spotify music bar
- Space for emojis <3
- Brightness up/down
- CPU
- Battery percentage + time remaining
- Local time
- Light/dark mode
Binary file added klaus_preset/images/klausMTMRpreset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions klaus_preset/items.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[
{ "type":"staticButton", "action": "appleScript", "bordered": false, "width": 120, "title": "༉‧₊˚🕯️🖤❀༉‧₊˚.","align": "right"},
{
"type": "appleScriptTitledButton",
"source": {
// put your path here!
"filePath": "/Users/Library/Application Support/MTMR/spotify.scpt"
},
"action": "appleScript",
"actionAppleScript": {
"inline": "tell application \"Spotify\"\rplaypause\rend tell"
},
"refreshInterval": 5,
"image": {
"base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAYUExURUdwTB3WXx3UXh3VXx7XYBkXFRpVLRyURmIaeAQAAAAEdFJOUwDDO3fSqUUkAAABbklEQVRIx61VbW6DMAztoAeYNA7ApB6gkzhAWS24wIAL0HABaK6/pHFNEhy8TXu/kPzkPD/8cTj8K7KPAqB+K5NhQPCUrABCXe7HOUYYZxgVRLiG8RfY4DUgFFtC7cffAfZTFBwBdhWEKfgEq4ocEjgj4ZQifO6/QG9kkETp1dDeVWfRKx3XYSW0LoqY5kCElXDrQkyeCCuh6WL0M4nIWQIyzqixdfKU1koFDKvyCA8NJMzU4xiD+b4kfHRpsIyKc6hBwjVptFHVY51EMAINNDFGJITKDNQcdpX74Hz0CQ3rY5qwMp4EIxrlafzrsYZ2Veb0DkRgfNCUok4Y1fqEijfyi2b8RE9beWqa48Y/uvCNMcH9btfUi+/CGLR1vhL6Zz9N/vBlaCU+7lwY/cmJ67Ryen/2tj23PLqJBodZH8vgj544vOL4pxfI5acrSFxi8hrkU9TSKr78ZpnL50A8KPJJEo+afBblwyqf5j/iGys5j6ScrST2AAAAAElFTkSuQmCC"
},
"longAction": "openUrl",
"longUrl": "spotify://"
},
{ "type": "previous", "width": 40, "align": "left"},
{ "type": "play", "width": 40, "align": "left"},
{ "type": "next", "width": 40, "align": "left"},
{
"type": "brightnessDown",
"bordered": false,
"align": "right",
"width": 36
},
{
"type": "brightnessUp",
"bordered": false,
"align": "right",
"width": 36
},
{
"type": "shellScriptTitledButton",
"width": 80,
"refreshInterval": 2,
"source": {
"inline": "top -l 2 -n 0 -F | egrep -o ' \\d*\\.\\d+% idle' | tail -1 | awk -F% '{p = 100 - $1; if (p > 30) c = \"\\033[33m\"; if (p > 70) c = \"\\033[30;43m\"; printf \"%s%4.1f%%\\n\", c, p}'"
},
"action": "appleScript",
"actionAppleScript": {
"inline": "activate application \"Activity Monitor\"\rtell application \"System Events\"\r\ttell process \"Activity Monitor\"\r\t\ttell radio button \"CPU\" of radio group 1 of group 2 of toolbar 1 of window 1 to perform action \"AXPress\"\r\tend tell\rend tell"
},
"align": "right",
"image": {
"base64":
"iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA/1BMVEUAAADaACbYACfYACfjABzXACjYACfXACjYACfYACfYACfYACfdACLYACfXACjYACfVACv/AADXACjYACfYACfXACjYACfXACjaACXYACfYACfVACvYACfYACfZACbZACbYACfYACfZACb/AADYACfYACfVACrXACjVACu/AEDYACfYACfYACfXACjXACjYACfXACjYACfYACfYACfXACjYACfXACjYACfYACfZACbYACfYACfMADPYACfYACfYACfYACfYACfZACbXACjYACfYACfRAC7XACjYACfZACbWACnXACjXACjYACfTACzZACb/AADYACfYACfYACcAAAA+zneGAAAAU3RSTlMAItK+CVPjh3xUxPwPiGDQGAMtSKmN3Vk+wPQG/e26oIJBnwJCdiuAHgTmw+6BX+IgfaqLUvKOW8VKnagK+vBwYrhlc/urCznvhSyUbOEXPAFjGh/ektAAAAABYktHRACIBR1IAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4ggWETQWgEDcSgAAAqVJREFUWMPtl4ly2jAQhsUNNlcw5r4SICEHLSQhCQRyX73T/u//LpUlLIyxbMAznWmn/0ywo5U+27tr7ZoQuwLBUJidRKIxPhKLRtgxHAoGiLfiQIKdKFCTxjGpQmEDCSC+BiAFpNlJBsgaxyyQYQNpIPUf8AcAOzktD+iaoQJQNI5FoMAGdCCv5XZclpfKFXiqUi5Jllf1mvdyQzW96gigd4h6o+mhRp1O0x3vvwa1VSWeqrZU1Jyeogy01ggSVQsoO/i/gjq9/u6u+2LDXq2jshqLHNCgdsCVwO0NILdi0oDmuoAmoImhQDzFRPNnb36L7U43NVfc2EH2D9h5t9OePyIF5IU9uIhvkyN7iiXmQUIOj8x/lB6f0bTaQ3ZA+9iaNCH2Lpg6btsBIRJOpJl0E9ABTvof5kqEGeCjMaN/AnRMgM5XJcI2J1J1gf6S48Tb2Ae6JkAjdgmAeJ1XAOJ1Xg8wGJ6elXwAzkeGjy62BgxG3MuXnoCIkmEq8EQyAUPgajyhPxJAga9SIiRqzwMOuAbGZDrDjQRgKkpiqiPgFphM74B7d4BKy2cyy1RcBvSodUb/HiSAIl+VlEfh8cm4wvPL9nnw+gbc+kkkUVioO95etwe8PBuP8vQoBzg7UQAe5t7syZwoCaMA3AN30wlzh3MYJYkkADeYTckYuJYlkiSVBeCKZtSY/gxlqezlxEt+pdFg6zBesPXn1ih8Aj5vkAels9PhYCkPsl++kg0AQu4dyuqmugIQm+qS5Nv6N+D7wm7d1skPc4xu666Fhd6BxU6r+jub8tNaWNxK29EhsdpR/sVn7FlLm0txPdgni+JrFNd3p+K67MQtyrsp3w2G7xbHd5Plv83z3Wj6b3V9N9ssFv7afaa//ZPn3wD4/vje8PP/N7TebS0hgZhEAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTA4LTIyVDE3OjUyOjIyKzAyOjAwc2qUYAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0wOC0yMlQxNzo1MjoyMiswMjowMAI3LNwAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"
},
"bordered": false
},

{ "type": "battery", "align": "right", "bordered": false },
{
"type": "timeButton",
"align": "right",
"formatTemplate": "h:mm a",
"bordered": false
},
{ "type": "darkMode", "align": "right"}
]
5 changes: 1 addition & 4 deletions lnugraha/items.json
Original file line number Diff line number Diff line change
@@ -16,10 +16,7 @@
"refreshInterval": 1,
"actions": [
{"trigger": "singleTap", "action": "appleScript",
"actionAppleScript": { "inline": "do shell script \"/usr/sbin/networksetup -setairportpower en0 on\"" }
},
{"trigger": "doubleTap", "action": "appleScript",
"actionAppleScript": { "inline": "do shell script \"/usr/sbin/networksetup -setairportpower en0 off\"" }
"actionAppleScript": { "inline": "inline": "set state to do shell script \"/usr/sbin/networksetup -getairportpower en0\"\nif state=\"Wi-Fi Power (en0): On\" then\n\tset val to \"off\"\nelse\n\tset val to \"on\"\nend if\ndo shell script (\"/usr/sbin/networksetup -setairportpower en0 \" & val)" }
},
{"trigger": "tripleTap", "action": "appleScript",
"actionAppleScript": { "inline": "tell application \"System Preferences\" to activate reveal pane id \"com.apple.preference.network\"" }
41 changes: 41 additions & 0 deletions patcheco/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Patcheco's Configuration for Silicon M1 Macbook

## Main Bar

![Main Bar](images/main_bar.png)

- M1 SOC temperature script - shows the 3 temperature sensors of the SOC (getSOCTemp)
- Ram script - shows the used ram / total ram (used%) swap (freeRam)
- Pomodoro - custom build of MTMR where the tomato 🍅 was replaced by the two balls
- SMC control group
- Turn off display with bike icon
- Night light
- IlluminationDown
- IlluminationUp
- BrightnessDown
- BrightnessUp
- Mute
- VolumeDown
- VolumeUp
- Battery - long press sleep
- Clock
- Delete key - custom cloud image

## SMC control group

![SMC control group](images/smc_bar.png)

- Close
- Show fan control status script (fanStatus)
- Enable manual fan control button script (fanManual)
- Enable auto fan control button script (fanAuto)
- Show battery charging configuration (statusCharging)
- Enable battery charging when plugged in (enableCharging)
- Disable battery charging when plugged in (disableCharging)


## Info

I've added all my custom compiled tools in the scrips folder:
- SMC tool that supports setting a custom fan speed for silicon macbooks (custom build based on this repo https://github.com/hholtmann/smcFanControl)
- temp_sensor2 that shows all temperature sensors every 5 seconds (custom build based on this repo https://github.com/fermion-star/apple_sensors)
Binary file added patcheco/images/main_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added patcheco/images/smc_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b90e18b

Please sign in to comment.