Sweets
Configuration

Error bar

Styling the on-screen configuration-error bar

sweets.notify styles the bar shown across the top of every monitor when your configuration fails to load. Every field is optional.

sweets.notify({
  background = "#420F0F",
  text = "#FFFFFF",
  accent = "#ED4545",
  font = "Monospace 10",
})
FieldTypeDefaultDescription
background#RRGGBB[AA]#6B1212Bar background; alpha below FF makes it translucent
text#RRGGBB[AA]#FFFFFFTitle and message colour
accent#RRGGBB[AA]#ED4545Stripe down the left edge
fontPango font stringMonospace 10Message font; the title is the same, bolded

font takes a Pango font description such as "Sans 11" or "JetBrains Mono 10". Sizes are clamped to 6–72 pixels.

The bar shows the error category, the failing file and line, the message, and the full source path. It draws above applications and panels, appears in screen captures, is hidden by the lock screen, and does not reserve work area.

A valid reload clears it. MOD+Shift+E dismisses it without clearing the recorded error, which you can still read with:

sweets msg config

The bar uses the last valid configuration, so a broken edit cannot restyle its own warning.