All widgets
Today's activity
Comes with Chopstick
Today's active time and current focus stretch, always on when nothing else shows.
Already installed? It's in your widget library.


What it runs
A widget is a folder of plain files. Here is all of its code.
widget.json
{
"id": "activity",
"name": "Today's activity",
"icon": "icon.png",
"description": "Today's active time and current focus stretch, always on when nothing else shows.",
"ambient": true,
"initial": "today",
"preview": {
"data": { "activity": { "today": "4h12m", "focus": "38m", "app_name": "T3 Code (Nightly)",
"top": "T3 Code 2h10m · Google Chrome 1h05m · Signal 22m", "switches": 214 } }
},
"states": {
"today": {
"compact": { "leading": { "symbol": "clock", "tint": "gray" }, "trailing": { "text": "{{activity.today | …}}" } },
"expanded": {
"header": { "symbol": "clock", "title": "{{activity.today}} active today" },
"blocks": [
{ "text": "{{activity.focus}} in {{activity.app_name}} without switching." },
{ "note": "{{activity.top}} · {{activity.switches}} switches" }
]
},
"keys": [ { "key": "esc", "label": "Hide for now", "do": [ "dismiss" ] } ]
}
}
}