<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<!--
Written by lowtide, 2026. CC0 1.0: dedicated to the public domain.
Live tiles on the cont8nuum Start screen.
c8-shell owns the name org.cont8nuum.Tiles on the session bus and serves
this interface at /org/cont8nuum/Tiles. Anything in the session can call
it: an app, its background helper, a cron job, a shell script (see
c8tile). There is no window or Wayland connection involved, and content
stays after the caller exits.
Tiles are named by their id in start.ini. An app pinned from All apps
has its desktop file id (org.gnome.Weather, firefox), so an app updates
its own tile under the id its .desktop file has.
Content is data, never pixels: Start draws it, in the tile, with the
rest of Start. An update is a dictionary of fields:
template text, block, image, peek, images, stats, calendar, forecast or
imagetext
(see below).
Default: image if there is an image and no text, else text.
heading a large line
text1..6 lines of text; a tab in a line puts what follows it at the
right edge (a name and a value, say)
block a short value shown large (a number, a temperature, a time)
meter 0 to 100: a thin bar under the block
image an absolute path or file:// URI (PNG, JPEG, SVG, ...)
image1..5 for the images template
value1..4 for the stats template, each over the line of the same
number (text1..4); color1..4 colour each cell
color #rrggbb: the tile's colour while this update shows
month for the calendar template: YYYY-MM
today for the calendar template: the day of the month to mark
weekstart for the calendar template: the first day of the week, 0 for
Sunday to 6; default 0
glyph for the forecast template: clear, night, partly,
partly-night, cloudy, fog, rain, sleet, snow or thunder
day1..4 for the forecast template, one column each: the name of the
day, with glyph1..4, value1..4 (the high) and low1..4
label shown in place of the tile's name; empty to show none
starts seconds from now before the update shows (see Scheduled
updates below)
expires seconds after which the update is dropped: from now, or
from when it starts if it has a starts
Sizes show as much as fits. Any field can be given for one size only by
prefixing it with medium., wide. or large. (wide.template=images,
large.text5=...), which wins over the plain field for that size. Small
tiles show only the badge.
Templates:
text heading, then the lines under it
block block and meter, text1 under them as a caption, then the
other lines: under the caption, or beside the block on wide
tiles
image the image fills the tile; heading or text1, if given, on a
band along the bottom
peek the image fills the tile, then slides up to show heading and
lines, and back
images image1 large, the others smaller beside it (wide, large)
stats up to four small cells of a value and a line, two by two, or
in a row on wide tiles; the tile itself is see-through around
them
calendar block (the day of the month, large), text1 (the weekday) and
text2 (the month) on the left, and the month as a grid with
today marked; on large tiles the grid goes under them and
text3.. beside them, on medium ones only the date shows
forecast glyph and block (a temperature) with text1 under them, then
the other lines; day1.. as columns of day, glyph, high and
low: on the right of wide tiles, under the rest on large
ones, not on medium ones
imagetext a small picture (image) with heading and the lines beside
it; on medium tiles the picture is a small square at the top
with the heading next to it and the lines under it
An update with an empty tag replaces everything on the tile. Tagged
updates queue up instead (at most five, the oldest dropped first) and
Start rotates through them; an update with a tag already queued replaces
that one in place.
Scheduled updates: an update with starts waits, and changes nothing
until then; at that time it is put on the tile as if it had been sent
just then (an untagged one replaces what is there, a tagged one joins the
queue or takes its tag's place), and expires counts from that moment. A
later scheduled update with the same non-empty tag replaces one still
waiting; at most 32 wait per tile. Remove with a tag, and Clear, drop
waiting ones too. They are kept across logins, and one whose time passed
while the shell was away is put on at once.
Secondary tiles: RequestPin asks the user to pin a tile for something
inside an app (a city in a weather app, a playlist), under an id the app
chooses. Start shows a question with what the tile opens; the call
returns whether it was pinned. Updating the tile is then the ordinary
Update under that id, and Activated says when it was opened. Options:
name (required, up to 64 characters), exec (required: the command line,
on one line of up to 400 bytes, that opens the app at that place; not
starting with @ or a space). The user is shown both in full, so neither
may have characters that don't show or reorder the text, nor more than
two spaces in a row;
icon (a name or absolute path), color (#rrggbb), size (small,
medium, wide or large; default medium), image and wide_image (absolute
paths of pictures filling the face instead of the colour and icon; the
wide one when the tile is wide, else the other) and label ("false" hides
the name). Only the app's own secondary tiles can be taken off again with
Unpin. A tile already pinned answers true at once, except a secondary
one asked for again with a name and exec: with the same exec its face
(name, icon, colour, size, pictures, label) changes without asking;
with another exec the user is asked again, and saying yes changes both.
A tile's provider (provider = in start.ini) is a program the shell
starts at login (sending Restarting first, so one left over from the
last session exits) and when the tile is pinned. Restart starts it again,
after installing a new build of it, say: the shell sends Restarting
first, and a provider still running for that tile should exit when it
hears it (c8-widget does; a script can use c8tile watch).
-->
<node>
<interface name="org.cont8nuum.Tiles1">
<method name="Update">
<arg name="tile" type="s" direction="in"/>
<arg name="tag" type="s" direction="in"/>
<arg name="content" type="a{ss}" direction="in"/>
</method>
<!-- Drop the update with this tag -->
<method name="Remove">
<arg name="tile" type="s" direction="in"/>
<arg name="tag" type="s" direction="in"/>
</method>
<!-- Drop every update and the badge: the tile shows its own face -->
<method name="Clear">
<arg name="tile" type="s" direction="in"/>
</method>
<!-- A short count or glyph in the corner; empty for none -->
<method name="SetBadge">
<arg name="tile" type="s" direction="in"/>
<arg name="badge" type="s" direction="in"/>
</method>
<!-- Whether a tile with this id is on Start, and its size (small,
medium, wide, large; empty when not pinned) -->
<method name="GetTile">
<arg name="tile" type="s" direction="in"/>
<arg name="pinned" type="b" direction="out"/>
<arg name="size" type="s" direction="out"/>
</method>
<!-- Start the tile's provider again; an empty id restarts every
pinned tile's. Fails if the tile isn't pinned or has none. -->
<method name="Restart">
<arg name="tile" type="s" direction="in"/>
</method>
<!-- Asks the user to pin a tile; replies when they have answered -->
<method name="RequestPin">
<arg name="tile" type="s" direction="in"/>
<arg name="options" type="a{ss}" direction="in"/>
<arg name="pinned" type="b" direction="out"/>
</method>
<!-- Takes off a tile made by RequestPin (others are left alone) -->
<method name="Unpin">
<arg name="tile" type="s" direction="in"/>
</method>
<!-- The tile was pinned, unpinned or resized -->
<signal name="TileChanged">
<arg name="tile" type="s"/>
<arg name="pinned" type="b"/>
<arg name="size" type="s"/>
</signal>
<!-- The user opened the tile (its command runs too, if it has one) -->
<signal name="Activated">
<arg name="tile" type="s"/>
</signal>
<!-- The tile's provider is about to be started again: one still
running for it should exit -->
<signal name="Restarting">
<arg name="tile" type="s"/>
</signal>
<!-- Whether Start is on screen. Updating tiles while it isn't is
fine, but there's no need to hurry. -->
<property name="StartVisible" type="b" access="read"/>
</interface>
</node>