The satellite SDK: Starchaser.Satellite 1.0
Prefer the typed providers and restricted sandbox described in Restricted code and typed data. Use a command poller only when no provider fits.
Taskbar items (Widget.qml), panels (Panel.qml), and Settings pages written in QML (Page.qml) use this module. It lives in config/quickshell/satellite-sdk/Starchaser/Satellite/ and is on the import path of every satellite's own process. Only the SDK is supported: a satellite may import Quickshell directly, and nothing stops it, but it then gets no help keeping Starchaser's look and rules. The Included Clock Seconds satellite (satellites/clock-seconds) uses every type below and is the working example.
import QtQuick
import Starchaser.Satellite 1.0The module version follows the satellite API ([starchaser] api = 1). New types and properties raise the minor version. Nothing is removed within a major version.
Rules the SDK keeps for you
- Never move the pointer. No type moves it, and
checkrefuses a satellite with code that would.
- Every popup and window has the close ×.
PopupandSatellitePaneldraw it. APage.qmlwindow gets it from Starchaser.
- Even spacing. Use
Theme.gapbetween controls andTheme.padinside cards.
- Imperial first.
Theme.temperature()andTheme.distance()write "68°F (20°C)" and "0.4 mi (0.6 km)".
- Plain text.
Labeland the taskbar never read text as markup.
Types
SatelliteWidget (the root of Widget.qml)
| Member | What it does | |---|---| | label: string | What the taskbar draws: a glyph or up to 40 characters, in the taskbar's font and colors. | | tip: string | The hover label, up to 300 characters. | | hovered: bool (read-only) | True while the pointer rests on the item. | | anchor: object (read-only) | Where the item is: {screen, x, y, w, h, edge}. edge is the taskbar's side: top, bottom, left, or right. | | clicked() | A left click on the item. A right-click is the taskbar's own menu. |
The satellite runs in its own process and writes a small file the taskbar reads through a checked copy. Writing more than 4 KB there stops it. It must keep running: one that stops answering for 15 seconds is stopped, and three stops in a minute switch it off.
SatellitePanel (the root of Panel.qml)
A panel: a box in Starchaser's look with its title, the close ×, and your content in a column. It opens under the taskbar at the top right, in a process of its own, when someone runs starchaser satellite open-panel <id>: your taskbar item's click (Satellite.openPanel()) or a keyboard shortcut. The same command closes it when it is open. Tab moves through its controls; Escape, the ×, or close() closes it. Screen readers hear its title.
| Member | What it does | |---|---| | title: string | The heading, and the panel's name for screen readers; the satellite's name by default. | | contentWidth: int | The width of the column, 320 by default. The panel is sized from its content, at most 720 px wide and most of the screen tall. | | close() | Closes the panel (ends its process). |
import QtQuick
import Starchaser.Satellite 1.0
SatellitePanel {
title: "Now playing"
Label { width: parent.width; text: "Nothing is playing." }
Button { text: "Close"; onClicked: close() }
}SatelliteOverlay (the root of Overlay.qml)
The content of a full-screen overlay, in a centered column under its title (default: the satellite's name); contentWidth (default 720) is the column's widest. close() closes it. Starchaser draws the backdrop and the close ×, and Escape always closes it (see An overlay).
Popup
A window beside the taskbar item, with a title and the close ×. Esc, the ×, or a click anywhere else closes it. Children are laid out in a column.
| Member | What it does | |---|---| | title: string | The heading; the satellite's name by default. | | contentWidth: int | The width of the column, 300 by default. | | open(), close(), toggle() | Show or hide it. toggle() is what onClicked usually calls. | | opened(), dismissed() | Signals. |
Label
Text in the Starchaser font and colors, plain text only, wrapping by word. secondary: true makes a help line in the hint color.
Button
The Starchaser button. text, primary: true for the main action, and clicked(). Tab reaches it, and Enter or Space presses it.
Switch
An on/off switch with its words. Set on from your saved value and save the change in onToggled, so the switch always shows what is saved:
Switch { text: "24-hour time"; on: config.get("use_24_hour", false); onToggled: config.set("use_24_hour", !on) }Config
The satellite's saved settings: settings.json in its own data folder, shared with its page.toml keys and with STARCHASER_SETTING_<KEY> for its commands.
| Member | What it does | |---|---| | get(key, fallback) | The saved value, or fallback. | | set(key, value) | Saves a value. Keys use lowercase letters, digits, and underscores (up to 40). Values are true or false, numbers, or text. | | values: object | Everything saved. A change from another window arrives here. | | ready: bool | The file has been read. |
Data
Runs a command through sh in the satellite's folder and keeps its output. List the program under [permissions] run, and any host it reaches under network.
| Member | What it does | |---|---| | command: string | What to run. Changing it runs it again. | | every: int | Seconds between runs; 0 runs it once. | | text: string, json | What it printed, trimmed, and the same read as JSON (or null). | | failed: bool, running: bool | The last run's result, and whether one is running. | | refresh() | Run it again now. |
Notify (singleton)
Notify.send(title, body): a notification under the satellite's name. Declare notify = true under [permissions].
Theme (singleton)
The colors, font, and spacing of the taskbar, from the theme Starchaser applied. It follows theme and dark or light changes at once.
| Member | What it is | |---|---| | bg, surface, surfaceHi, border | Backgrounds and outlines. | | text, subtext, hint, muted | Text colors. hint always reads at 4.5:1 or better. | | accent, accent2, success, warning, error | Accent and state colors. | | font, fontSize, titleSize | The Starchaser font and sizes. | | gap, pad, cut | Spacing between controls, inside cards, and the cut corner. | | dark, clock24 | Dark or light, and the person's 12- or 24-hour clock. | | temperature(celsius) | "68°F (20°C)". | | distance(km) | "0.4 mi (0.6 km)". | | time(date, seconds) | The time in the person's clock, with or without seconds. |
Satellite (singleton)
| Member | What it is | |---|---| | satelliteId, name | Its id and name from satellite.toml. | | folder | Its own files (read-only). | | dataFolder, settingsFile | Its writable folder and Config's file. | | mode | widget in the taskbar, page in its settings window, panel in its panel. | | anchor | The same as SatelliteWidget.anchor. | | openPanel() | Opens this satellite's panel, or closes it when it is open. A taskbar item's onClicked usually calls it. | | openOverlay() | Opens this satellite's full-screen overlay, or closes it when it is open. Escape and the close × always close it too. | | openMenu() | Opens the Super menu straight at this satellite's own menu page (its menu.json, a menu-page), or closes it when it is open there. |
Chamfer and CloseX
The Starchaser cut-corner box (fill, stroke, strokeWidth, cut, corners) and the close × (28 px; clicked()), for authors who draw their own cards.
A taskbar item
import QtQuick
import Starchaser.Satellite 1.0
SatelliteWidget {
id: widget
Config { id: config }
Data { id: temp; command: "./bin/outside-temp"; every: 900 } // prints a number in °C
label: temp.text ? Theme.temperature(Number(temp.text)) : "\u{f0599}"
tip: "Outside · click for more"
onClicked: popup.toggle()
Popup {
id: popup
title: "Outside"
Label { width: parent.width; text: temp.text ? Theme.temperature(Number(temp.text)) : "No reading yet." }
Switch { width: parent.width; text: "Notify me below freezing"; on: config.get("freeze_alert", false)
onToggled: config.set("freeze_alert", !on) }
Button { text: "Check now"; onClicked: temp.refresh() }
}
}Where it sits on the taskbar
A taskbar item starts at the end of the taskbar, just before the privacy lights, on the main screen. Two optional fields in satellite.toml change that (the same idea as barWidget.defaultSection and allowMultiple in an Omarchy plugin's manifest.json):
[starchaser.bar]
default_section = "start" # "start" (after the menu button), "middle" (after the desktops), or "end"
allow_multiple = true # it may show on every screen at once (default false: one screen)People move it themselves in Settings > Satellites > its Details > Place on the taskbar…: Start, Middle or End, and Main screen, one screen by name, or (with allow_multiple) Every screen. Tab moves between the two rows, Left and Right between the choices, Enter or Space picks one, and Escape closes it. The same from a terminal: starchaser satellite bar-place <id> --section middle --screens all. Where it sits is the person's choice, kept beside the add-on's record; it never changes what the add-on may do. On every screen, each copy is drawn from the one process the add-on runs in, and the popup opens beside the copy that was clicked. In the slim top bar (the cockpit off), the start and the middle are both after the desktops, since the middle of that bar is the clock's.
A panel
Add "panel" to kinds and write Panel.qml (or name another file with entry = { panel = "MyPanel.qml" }) with SatellitePanel at its root. check (or validate) wants that root. Open it from your taskbar item:
SatelliteWidget {
label: "\u{f05af}"
tip: "My panel · click to open"
onClicked: Satellite.openPanel()
}Or bind a key: Settings > Custom shortcuts, add a shortcut with the command starchaser satellite open-panel <id>. Pressing it again closes the panel.
The panel is a layer under the taskbar (never over it). The keyboard comes to it on demand, so Tab and Escape work once it has focus. It never moves the pointer and never holds it. It closes when the satellite is turned off or removed, in safe mode, and when you sign out. A panel that ends with an error counts as a stop, like a taskbar item; closing it does not. Its log is ~/.local/state/starchaser/satellites/<id>.panel.log. The developer sample Sample Panel (satellites/sample-panel) is a working example.
An overlay
Add "overlay" to kinds and write Overlay.qml (or name another file with entry = { overlay = "MyOverlay.qml" }) with SatelliteOverlay at its root:
import QtQuick
import Starchaser.Satellite 1.0
SatelliteOverlay {
title: "Focus timer"
Label { text: "25:00"; font.pixelSize: Theme.px(96) }
Button { text: "Done"; onClicked: close() }
}Open it from a taskbar item with Satellite.openOverlay(), or bind a key: Settings > Custom shortcuts, with the command starchaser satellite open-overlay <id> (open-panel <id> opens it too when the satellite has no panel). Pressing it again closes the overlay.
What Starchaser keeps for you, which the overlay's own QML can't change:
- Escape always closes it. While an overlay is open, the desktop runs a key map of its own whose Escape closes every overlay before any key reaches the overlay. Other keys reach it as usual (Tab moves through its controls once it has the keyboard). Super+L still locks.
- The close × is Starchaser's, drawn at the top right above the overlay's content, with "Esc closes" beside it.
- It covers the screen you are using, beside the taskbar, never over it, so safe mode and the add-on's right-click menu stay in reach. Behind it is a dimmed backdrop in the theme's colors.
- Never over the lock screen or a password prompt. Both always sit above it, and it closes when the screen locks or a password prompt opens (and it won't open while one is up).
- It closes when the add-on is turned off or removed, in safe mode, when the list of satellites takes the add-on off (the kill switch), and when you sign out. One that ends with an error counts as a stop, like a panel.
- It never moves or holds the pointer, and only asks for the keyboard; it never takes it.
check refuses an Overlay.qml without SatelliteOverlay at its root, and one that opens windows of its own (PanelWindow, FloatingWindow, PopupWindow, WlrLayershell) or handles ShortcutOverride. Its log is ~/.local/state/starchaser/satellites/<id>.overlay.log. The developer sample Sample Overlay (satellites/sample-overlay) is a working example.
A background service
A "service" satellite is a program Starchaser keeps running while the satellite is on, with no window: a sync, a watcher, a small server for your taskbar item. Its entry is bin/service (or entry = { service = "..." }), a regular executable file inside the satellite folder. check wants it there and executable, and reads a shell script with sh -n.
- How it starts. The program itself, directly (no shell), in the satellite's folder, with no input. It gets the usual satellite variables:
STARCHASER_SATELLITE_ID,STARCHASER_SATELLITE_NAME,STARCHASER_SATELLITE_DIR(its folder),STARCHASER_SATELLITE_DATA(its writable folder),STARCHASER_SATELLITE_SETTINGS,STARCHASER_SATELLITE_RUN(a runtime folder it can share with its taskbar item),STARCHASER_SATELLITE_MODE=service, andSTARCHASER_SETTING_<KEY>for each saved setting. List what it runs under[permissions] run.
- Logs. What it prints goes to its log (Details > Show log), at most 16 KB per start, lines cut at 500 characters.
- Restart and auto-off. It is meant to keep running. If it ends, even with exit code 0, the log says "The background service stopped (exit code N).", and it starts again after 2 seconds. Three stops within a minute switch the satellite off with "*Name* kept stopping, so it's off." An update, or new files from
starchaser satellite dev, restarts it at once without counting.
- Stopping. Turning the satellite off, removing it, safe mode, the list's kill switch, and signing out send its process group TERM, then KILL two seconds later. Exit promptly on TERM.
- Pinned. One added from a link runs only while its files still match the commit it was added at.
#!/bin/sh
trap 'exit 0' TERM
while :; do
date > "$STARCHASER_SATELLITE_DATA/last-run.txt"
sleep 60 & wait $!
doneThe developer sample Sample Background Service (satellites/sample-service) writes the time to heartbeat.txt once a minute.
A Settings page in QML
Page.qml can be any item. Its window sets the width and reads the height, so a Column works well. Most pages are simpler as page.toml, which needs no code (see satellites.md).
import QtQuick
import Starchaser.Satellite 1.0
Column {
spacing: Theme.gap
Config { id: config }
Label { width: parent.width; text: "How the taskbar item looks." }
Switch { width: parent.width; text: "24-hour time"; on: config.get("use_24_hour", Theme.clock24)
onToggled: config.set("use_24_hour", !on) }
}Test your QML with starchaser satellite check .. It runs qmllint with the SDK on the import path and names a mistake that would stop the file from loading.
Restricted code and typed data
New add-ons should use sandbox = "restricted" inside [starchaser]. Bubblewrap enforces a private home, private temporary files, read-only add-on code, no network or session bus, and writes only to the add-on's own storage and mailbox. The Wayland socket allows windows. Installed system programs remain available; run is a disclosure list, not an executable allowlist. Missing Bubblewrap is an error, never permission to run outside it. Older manifests without this field are labeled Full access. A full-access add-on's network, file and program lists are disclosures; they are not enforced. Never tell people otherwise.
Prefer typed sources over a Data command and a shell poller:
[starchaser]
api = 2
sandbox = "restricted"
providers = ["battery", "network", "media", "workspaces", "weather", "calendar"]
secrets = ["account_token"]Label { text: Battery.available ? Battery.percent + "%" : "No battery data" }Battery.value, Network.value, Media.value, Workspaces.value, Weather.value, and Calendar.value come from one trusted host snapshot every 15 seconds. Only requested sources appear in an add-on's mailbox. available distinguishes absent data from a zero or empty result. Weather needs a configured weather service; Calendar reads the local Date and Agenda add-on. No source reads all passwords. Media controls additionally need media = true under [permissions]; then Media.playPause(), next() and previous() use the broker.
Secrets.request("account_token") delivers the declared key through Secrets.received(key, value). Save a value with starchaser satellite secret-set ID account_token, reading it on standard input. It is stored in the encrypted keyring with an add-on-specific namespace. The broker cannot read another add-on's namespace. Replies use private runtime storage and are cleared after reading; no secret is written to a provider snapshot or log.
Notify.send and Satellite.openPanel/openMenu/openOverlay use a narrow request mailbox. The host checks the current enabled state and declared permission before honoring a request. Notifications always say Add-on: NAME. Requests expire after five seconds. Do not put secrets in notification text or taskbar labels.
Declarative desktop surfaces
Add quick-tile, search-result, desktop-widget, lock-widget, or file-action to kinds. Each entry is a JSON file named after its kind by default. It contains at most 20 rows with a label, optional text, and optional run. Commands count as code and use the same enabled-state and sandbox gate as every other command. Lock widgets accept only static label and text: never commands or private providers. The desktop, lock screen and quick settings render plain text themselves; they never import an author's QML.
Files actions are exported to Files' existing action manifest format. A selected file arrives in STARCHASER_FILE; use "$STARCHASER_FILE", never insert it into a shell command. Declaring selected_file = true under [permissions] grants a read-only mount of that one regular file, without granting the folder around it. A stale action checks that the add-on is still on before running. Disk Meter supplies a working checksum action.
Taskbar items may publish icon (four characters) and colorRole (text, accent, success, warning, error). scrolled(steps) receives +1 or -1; contextRequested() comes from Add-on actions in the taskbar's own menu. Its Settings and Turn off rows always remain available. Never send raw colors, markup, or image paths to the taskbar.
Restricted code can also use Http.request(url, method, headers, body). Declare exact host names under [permissions] network. The sandbox has no network socket: Starchaser's HTTPS broker enforces those hosts, port 443, five-second timeouts, a 64 KB response limit, a 4 KB request body limit, and at most three same-host redirects. No cookies, ambient proxy credentials, or browser sign-ins are inherited. Only Accept, Content-Type, and Authorization headers are allowed. Http.finished(status, text, error) delivers plain response text; parse JSON explicitly. Add-ons may use their own scoped saved sign-ins for Authorization. The activity view records the last contacted host and time, without URLs, request bodies, headers, or sign-in values.
An optional [starchaser] shortcut = "Super+Alt+T" suggests keys for the recorder. It never binds keys itself; the existing recorder checks conflicts and asks the person to save the shortcut.
Restricted mode and the new capabilities require api = 2. Older API 1 hosts refuse them before running code; never declare restricted code as API 1. The QML import remains Starchaser.Satellite 1.0.
Task lists and responsive controls
TextField has text, placeholder, accessibleName, readOnly, copy() and onAccepted. CheckBox has text, checked, strikeThrough and onToggled; Space, Return and a screen reader all request the same change. Update its checked value from your saved model. List accepts model, delegate and emptyText, and grows with its contents. Label exposes its plain text to screen readers automatically.
Use the SDK's wrapping Row through an explicit module alias, because Qt Quick also has a type named Row:
import QtQuick
import Starchaser.Satellite 1.0
import Starchaser.Satellite 1.0 as Sdk
SatellitePanel {
title: "My tasks"
TextField { id: entry; width: parent.width; accessibleName: "New task" }
Sdk.Row {
Button { text: "Add task"; onClicked: addTask(entry.text) }
Button { text: "Clear done"; onClicked: clearDone() }
}
List {
model: tasks
emptyText: "No tasks. Add your first task."
delegate: CheckBox {
required property var modelData
text: modelData.text
checked: modelData.done
strikeThrough: true
onToggled: saveDone(modelData.id, !checked)
}
}
}The example's tasks, addTask, clearDone and saveDone belong to the author's data model. The included Checklist is a complete working example. SatellitePanel scrolls long content while keeping its title and Close button visible. Tab scrolls the focused control into view.
For a live taskbar item, set label to the full reading and compactLabel to up to five characters, such as 85% or 4:32. Side taskbars show that short reading below the icon. Keep the full value in the tooltip as well. Use a typed provider when one supplies the reading; otherwise read only the add-on's private data or run an already-declared helper.
Personal hooks
Executable scripts can also live in ~/.config/starchaser/hooks/<event>.d/ without an add-on. The same five-second bound and nonblocking execution apply. See Personal event scripts. The battery-low event includes STARCHASER_BATTERY_PERCENT and fires once per discharge cycle at 20% or less.