waybar-states(5) File Formats Manual waybar-states(5) NAME waybar - states property OVERVIEW Some modules support 'states' which allows percentage values to be used as styling triggers to apply a class when the value matches the declared state value. STATES Every entry (state) consists of a (typeof: string) and a (typeof: integer). o The state can be addressed as a CSS class in the style.css. The name of the CSS class is the of the state. Each class gets activated when the current value is equal to or less than the configured for the battery module, or equal to or greater than the configured for all other modules. o Also, each state can have its own format. Those can be configured via format-, or if you want to differentiate a bit more, as format--. EXAMPLE "battery": { "bat": "BAT2", "interval": 60, "states": { "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", "format-icons": ["", "", "", "", ""], "max-length": 25 } STYLING STATES o #battery. - can be defined in the config. EXAMPLE: o #battery.warning: { background: orange; } o #battery.critical: { background: red; } 2024-09-15 waybar-states(5)