waybar-states - Man Page

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 <name> (typeof: string) and a <value> (typeof: integer).

Example

  "battery": {
  	"bat": "BAT2",
  	"interval": 60,
  	"states": {
  		"warning": 30,
  		"critical": 15
  	},
  	"format": "{capacity}% {icon}",
  	"format-icons": ["", "", "", "", ""],
  	"max-length": 25
  }

Styling States

Example

Referenced By

waybar(5), waybar-backlight(5), waybar-battery(5), waybar-cpu(5), waybar-disk(5), waybar-memory(5), waybar-pulseaudio(5), waybar-wireplumber(5).

2024-11-26