Attach labels and progress to windows
Set and clear annotationsPermalink to Set and clear annotations#
Use annotations to attach a project label, branch path, unread badge, or progress to a window without replacing its title. Run these inside a terminal whose window you want to annotate:
tessera annotate set project.name label work
tessera annotate set git.branch segments project feature/manual
tessera annotate set build.status badge --level warn --text failed --count 3
tessera annotate set build.progress progress 0.65 --ttl 30
tessera annotate get
tessera annotate clear build.status
tessera annotate clear --owner buildKeys use owner.name, with up to 32 ASCII letters, digits, underscores, or hyphens in each part. tessera.* is reserved. Independent owners don't overwrite one another's keys, but owners are naming conventions rather than authenticated identities. An annotation doesn't request native urgency.
Choose the window deliberatelyPermalink to Choose the window deliberately#
By default, Tessera follows the calling process's host ancestry to a mapped Wayland client and requires one matching window. Ambiguity fails instead of using focus. Shared terminal servers, browser processes, and multiple Emacs frames may need an explicit window ID.
Choose one selector: --pid PID follows that same-user process's ancestry; --tty /dev/pts/N resolves processes with that controlling terminal; --window ID names a mapped window; --app-id ID requires one exact match; --focused chooses focus when the request executes. Enumerate windows with output-tiled-windows and workspace-floating-windows in eval, then inspect window-title and window-app-id. IDs last for one session.
Daemonized hooks may lose useful ancestry. A tmux hook should use its attached client's PID, then retain an exact window ID for detach cleanup. Fully redirected processes may not resolve by TTY. SSH and container PIDs aren't host window IDs; use an intentional local relay and exact ID. Never forward the expression socket, which grants full session evaluation authority.
Choose lifetime and displayPermalink to Choose lifetime and display#
Annotations survive temporary unmapping and reload, ending on clear, window destruction, or compositor restart. --ttl SECONDS accepts 1 through 86400 and renews on replacement. --clear-on-focus clears on the next transition into the window; if already focused, it waits for leave/reenter. The CLI exiting doesn't clear its data. Refresh temporary states with short TTLs and explicitly clear ended states.
Labels accept 80 characters; segments accept one through four such strings. Badges use ok, info, warn, or urgent, optional 24-character text, and count 0 through 999999. Progress is a finite value from 0 to 1 or indeterminate. --accent supplies a semantic tint. Text is literal, with control characters, escapes, and bidi overrides refused. Limits include eight keys per owner/window and sixteen per window; invalid updates preserve old data.
(config
bar: (bar
left: (list (workspaces-section) (annotations-section))
center: (list (clock-section))
right: '()))The optional section shows the focused window's annotations on the focused output, up to four entries plus overflow. Counts cap visually at 99+ and the default maximum width is 240 logical pixels. Labels and segments precede badges and progress. Title bars don't draw annotations themselves. The public API also offers resolve-annotation-window, window-annotations, set-window-annotation!, clear-window-annotation!, and clear-window-annotations!. Queries return detached association lists ordered by key.