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",
})| Field | Type | Default | Description |
|---|---|---|---|
background | #RRGGBB[AA] | #6B1212 | Bar background; alpha below FF makes it translucent |
text | #RRGGBB[AA] | #FFFFFF | Title and message colour |
accent | #RRGGBB[AA] | #ED4545 | Stripe down the left edge |
font | Pango font string | Monospace 10 | Message 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 configThe bar uses the last valid configuration, so a broken edit cannot restyle its own warning.