Show notifications and take screenshots

Use notifications

Tessera shows notification cards on the focused output in the active palette. Click a card for its default action, or to dismiss if it has none. Buttons invoke named actions; right-click dismisses without acting. Critical cards don't expire automatically.

tessera notify 'Build finished' 'All checks passed' --app-name Compiler
tessera notify 'Open the result?' --action default=Open --action later=Later --wait

The command prints an ID. With --wait it then prints the chosen action key, or no key on dismissal. --replace updates an ID. --timeout -1 uses defaults of three seconds for low urgency and five for normal; zero persists. --urgency accepts low, normal, or critical.

(config
  notifications: (notifications corner: 'bottom-right
                   width: 360 count: 5 margin: 16))

Corners can be top-left, top-right, bottom-left, or bottom-right. Margins use logical pixels from usable output edges, excluding bars and exclusive zones. The bar font supplies family and size unless notifications sets its own font. At most five cards are visible, fewer on small outputs. Bodies show up to four lines and accept b, i, u, and a href markup; other tags stay literal. Icons use local PNG or supported SVG files/theme names.

The live queue holds at most 32 notifications, including while locked or in do-not-disturb mode. A new notification at capacity removes an older non-critical entry, preferring one not currently shown. If every entry is critical, low and normal requests are refused; a new critical notification can remove an older critical one. Replacing a live ID keeps that ID without evicting another. Requests above five per app per second or twenty overall are refused before any eviction.

The API includes notify!, dismiss-notification!, dismiss-all-notifications!, notification-result, and notification-history. Do-not-disturb queues low and normal cards while critical ones still appear. History retains the last 64 closed notifications. Standard applications use notify-send or the normal org.freedesktop.Notifications session-bus interface. An existing daemon keeps the bus name until it releases it.

To keep Mako, set notifications: #f and keep your Mako startup command and generated theme include. That disables Tessera's UI/server and its notification CLI/API. See session startup helpers.

Save a screenshot

Press Print for the focused output, or Alt+Print to select an area with slurp. Grim saves the image under XDG_PICTURES_DIR/Screenshots, or ~/Pictures/Screenshots when unset, and sends a notification. Install grim, slurp, and a working notification service. Set screenshot-directory in your configuration for another location, or screenshot-command for your own helper. The launcher also offers output, area, and window screenshot choices.