Table of Contents
Note
This page is auto-generated from
man/waybar-states.5.scdon themasterbranch. Do not edit it here — changes will be overwritten on the next sync. To update it, edit the man page(s) and open a PR.
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 <name> (typeof: string) and a <value> (typeof: integer).
-
The state can be addressed as a CSS class in the style.css. The name of the CSS class is the <name> of the state. Each class gets activated when the current value is equal to or less than the configured <value> for the battery, pulseaudio and wireplumber modules, or equal to or greater than the configured <value> for all other modules.
-
Also, each state can have its own format. Those can be configured via format-<name>, or if you want to differentiate a bit more, as format-<status>-<state>.
EXAMPLE
"battery": {
"bat": "BAT2",
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
"max-length": 25
}
STYLING STATES
- #battery.<state> - <state> can be defined in the config.
EXAMPLE:
-
#battery.warning: { background: orange; }
-
#battery.critical: { background: red; }
- Home
- Installation
- Configuration
- Styling
- Examples
- FAQ
- Modules:
- Backlight/Slider
- Backlight
- Battery
- Bluetooth
- CPU
- Cava
- CFFI
- Clock
- Custom
- DWL
- Disk
- Gamemode
- GPS
- Group
- Hyprland
- Idle Inhibitor
- Image
- Inhibitor
- JACK
- Keyboard State
- Language
- Load
- Mango
- Menu
- MPD
- MPRIS
- Memory
- Network
- Niri
- Power Profiles Daemon
- Privacy
- PulseAudio/Slider
- PulseAudio
- River
- Sndio
- Sway
- Systemd failed units
- Taskbar
- Temperature
- Tray
- UPower
- User
- Wayfire
- WirePlumber
- Workspaces
- WWAN
- Writing Modules
License
Waybar is licensed under the MIT license. See LICENSE for more information.