Sweets
Configuration

Error bar

The sweets.notify block — styling the on-screen config-error bar.

sweets.notify{ ... } styles the bar Sweets shows when your config fails to load or reload. The bar appears across the top of every monitor with the failing file, line, and message; see Error reporting for the behavior. Every field is optional — omit the block to keep the default red look.

sweets.notify({
  background = "#420F0F", -- bar background
  text = "#FFFFFF",       -- title and message text
  accent = "#ED4545",     -- left accent stripe
  font = "Monospace 10",  -- message font; the title is the same, bolded
})

Fields

FieldTypeDefaultDescription
background#RRGGBB[AA]#6B1212Bar background. An alpha below FF makes the bar translucent.
text#RRGGBB[AA]#FFFFFFTitle and message color. The dismiss hint uses the same color, dimmed.
accent#RRGGBB[AA]#ED4545The stripe down the left edge of the bar.
fontPango font stringMonospace 10Font for the message. The title reuses it in bold.

The font value is a Pango font description — a family, optional style, and size, such as "Sans 11", "JetBrains Mono 10", or "Noto Sans Bold 12".

The bar is rendered by the sweetnag helper, which the compositor launches with these values. Changes apply the next time the bar appears, so save a broken config (or run echo test | sweetnag --bg "#1E2030") to preview them.

The active values are reported by sweetctl config as notify_background, notify_text, notify_accent, and notify_font.

On this page