Error bar
The bar that shows configuration errors, and how to style it
When your config has an error, a bar appears on every monitor. It shows the file, the line, and what went wrong. Sweets keeps running with your last working config.
| To | Do |
|---|---|
| Clear the bar | Fix the error and save, or press MOD+Shift+R |
| Hide it for now | Press MOD+Shift+E |
| See the error again | Run sweets msg config |
sweets.notify
Change how the bar looks:
sweets.notify({
background = "#420F0F",
text = "#FFFFFF",
accent = "#ED4545",
font = "Monospace 10",
position = "top", -- "top" or "bottom"
})| Field | Default | Effect |
|---|---|---|
position | "top" | Show the bar at the "top" or "bottom" |
background | "#6B1212" | Background color |
text | "#FFFFFF" | Text color |
accent | "#ED4545" | Stripe on the left edge |
font | "Monospace 10" | Font, like "Sans 11" |
Style changes show on the next error, because the bar uses your last working config.