From 676e99af37caac06f907dc35ce1d89fc8809ae4d Mon Sep 17 00:00:00 2001 From: OGentner Date: Sun, 13 Jul 2025 14:37:46 +0200 Subject: [PATCH 1/4] Created ultralight version This is a ultra light version of ZenTrate, uses less power, less time but is also less customizible --- ZenTrate_ultra_light.js | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 ZenTrate_ultra_light.js diff --git a/ZenTrate_ultra_light.js b/ZenTrate_ultra_light.js new file mode 100644 index 0000000..2192b39 --- /dev/null +++ b/ZenTrate_ultra_light.js @@ -0,0 +1,52 @@ +// Variables used by Scriptable. +// These must be at the very top of the file. Do not edit. +// icon-color: deep-gray; icon-glyph: bars; +// ZenTrate Minimal: Clean Productivity Launcher + +const items = [ + { name: "Spotify", scheme: "spotify://" }, + { name: "Maps", scheme: "comgooglemaps://" }, + { name: "Whatsapp", scheme: "whatsapp://" }, + { name: "Meditation", scheme: "shortcuts://run-shortcut?name=Meditation" } +] + +const bgColor = new Color("#242424") +const textColor = new Color("#f8f8f8") +const font = new Font("AvenirNext-Bold", 24) + +const widget = new ListWidget() +widget.backgroundColor = bgColor +widget.setPadding(0, 8, 0, 8) + +const mainStack = widget.addStack() +mainStack.layoutVertically() + +for (let i = 0; i < items.length; i++) { + const item = items[i] + + const row = mainStack.addStack() + row.layoutHorizontally() + row.bottomAlignContent() + row.addSpacer(23) + + const stack = row.addStack() + stack.setPadding(4, 4, 4, 4) + stack.url = item.scheme + + const text = stack.addText(item.name) + text.font = font + text.textColor = textColor + text.minimumScaleFactor = 0.5 + + // ✅ Pushes the content to the left + row.addSpacer() + + if (i < items.length - 1) mainStack.addSpacer(10) +} + +if (config.runsInWidget) { + Script.setWidget(widget) +} else { + widget.presentLarge() +} +Script.complete() From e3c2f58596fef787bb38610e45ae48941df2d5dd Mon Sep 17 00:00:00 2001 From: OGentner Date: Sun, 13 Jul 2025 14:37:59 +0200 Subject: [PATCH 2/4] Updated Readme file --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 035bdc1..98a94a6 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,18 @@ al life and enhance productivity. - **Sorting**: Items can be sorted alphabetically or by usage frequency. - **Autosizing**: The widget dynamically adjusts text size based on usage frequency, making more frequently used items more prominent. +### ZenTrate_ultra_light.js + +ZenTrate_ultra_light is based on ZenTrate.js but is strongly reduced in customization and it is created to run as fast as possible, with the least amount of battery usage. Its layout is based on the day/time widget of the IOS Minimal App (Minimalist Launcher). + +**Still Customizable:** +- Items (flexible amount) with their belonging URL schemes +- Font and font size +- Colours (background, Font) +- if needed: spacing + + + ### ZenLendar.js ZenLendar displays your calendar events in a clean, concise format. It integrates directly with ZenTrate, following the same minimal design principles. From e8d3d3f7b7790d3ed1ed127806d62693172561fe Mon Sep 17 00:00:00 2001 From: OGentner <83331999+OGentner@users.noreply.github.com> Date: Sun, 13 Jul 2025 19:00:44 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 98a94a6..d738b8a 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ ZenTrate_ultra_light is based on ZenTrate.js but is strongly reduced in customiz **Still Customizable:** - Items (flexible amount) with their belonging URL schemes - Font and font size -- Colours (background, Font) +- Colours (background, font) - if needed: spacing From 4c922f6940560fae1c5327ed4ca90447dd986ab3 Mon Sep 17 00:00:00 2001 From: OGentner Date: Sun, 13 Jul 2025 19:10:14 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 98a94a6..a5a70ba 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ ZenTrate_ultra_light is based on ZenTrate.js but is strongly reduced in customiz - Colours (background, Font) - if needed: spacing - +![screenshot](https://github.com/OGentner/scriptables/blob/main/Screenshot_Scriptable_Widget.PNG?raw=true) ### ZenLendar.js