aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-12-02 16:04:53 +0100
committerDanilo M. <danix@danix.xyz>2026-12-02 16:04:53 +0100
commit9e24ee5f94a211cc76fad37c00ab0e60d340c3fc (patch)
treea513da51393752033237d17f288a650960efcdc3
parent316be05d1fe19e6d99d59eabb6a2170921fbc6c9 (diff)
downloadphone-customization-9e24ee5f94a211cc76fad37c00ab0e60d340c3fc.tar.gz
phone-customization-9e24ee5f94a211cc76fad37c00ab0e60d340c3fc.zip
clock: tap date for Niagara agenda, event for Etar event view
KWGT's LAUNCH_APP forces MAIN/LAUNCHER, so deep links need OPEN_LINK. The date line (date, weather, temperature) now opens niagara://agenda instead of Etar's main view; previously weather fell through to the clock app. The event line opens the shown event via ci(url, 0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--AGENTS.md6
-rw-r--r--clock/src/preset.json22
-rw-r--r--clock/tallclock.kwgtbin100609 -> 100598 bytes
3 files changed, 17 insertions, 11 deletions
diff --git a/AGENTS.md b/AGENTS.md
index b693c00..f1e03bd 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -49,6 +49,12 @@ phone besides KWGT.
- Tap actions: `internal_events` with `LAUNCH_APP` and an `intent:` URI. The
clock app on this phone is `com.android.deskclock/.DeskClock` (not the
Google package), the calendar is Etar (`ws.xsoh.etar`).
+- `LAUNCH_APP` always sends `action=MAIN`, `category=LAUNCHER`, so it cannot
+ fire deep links. For a URI use `{"action": "OPEN_LINK", "url": "..."}`
+ (VIEW intent); `url` accepts inline `$formulas$`.
+- Date line taps open Niagara's agenda overlay: `niagara://agenda` (Niagara
+ has no weather overlay link). The event line opens the event itself in Etar
+ via `$ci(url, 0)$` (a `content://com.android.calendar/events/<id>` link).
- `tf(date)` gives a localized countdown ("fra 25 minuti"); `ci(..., 0)` is
the next calendar event; both need KWGT's calendar/location permissions.
diff --git a/clock/src/preset.json b/clock/src/preset.json
index 33f346a..7b5650f 100644
--- a/clock/src/preset.json
+++ b/clock/src/preset.json
@@ -65,14 +65,7 @@
"fx_shadow_direction": 270.0,
"fx_shadow_distance": 3.0,
"fx_shadow_blur": 4.0,
- "position_anchor": "CENTER",
- "internal_events": [
- {
- "type": "SINGLE_TAP",
- "action": "LAUNCH_APP",
- "intent": "intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=ws.xsoh.etar/com.android.calendar.AllInOneActivity;end"
- }
- ]
+ "position_anchor": "CENTER"
},
{
"internal_type": "TextModule",
@@ -118,6 +111,13 @@
"fx_shadow_blur": 4.0,
"position_anchor": "CENTER"
}
+ ],
+ "internal_events": [
+ {
+ "type": "SINGLE_TAP",
+ "action": "OPEN_LINK",
+ "url": "niagara://agenda"
+ }
]
},
{
@@ -205,8 +205,8 @@
"internal_events": [
{
"type": "SINGLE_TAP",
- "action": "LAUNCH_APP",
- "intent": "intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=ws.xsoh.etar/com.android.calendar.AllInOneActivity;end"
+ "action": "OPEN_LINK",
+ "url": "$ci(url, 0)$"
}
]
}
@@ -214,4 +214,4 @@
}
]
}
-} \ No newline at end of file
+}
diff --git a/clock/tallclock.kwgt b/clock/tallclock.kwgt
index a1a074d..ef693c5 100644
--- a/clock/tallclock.kwgt
+++ b/clock/tallclock.kwgt
Binary files differ