Skip to Content
mangobar

Brightness

Options and usage for the Brightness module in mangobar.

Shows backlight brightness, read from /sys/class/backlight (auto-detected or set with device). Updates immediately on external changes via udev.

"modules-right": ["backlight"],

"backlight": {
    "format": "{icon} {percent}%",
    "icons": ["󰃞", "󰃟", "󰃝", "󰃝", "󰃠", "󰃠", "󰃠"],
    "scroll-step": 2
}

Options

OptionTypeDefaultDescription
formatstring—Display format (see placeholders)
iconsstring array—Nerd-font icons shown by brightness level
devicestringautoBacklight device under /sys/class/backlight
scroll-stepnumber2Percentage points to change per wheel tick
on-scroll-up / on-scroll-downstring—Custom commands that replace the built-in wheel handling

Wheel input changes the selected backlight directly. mangobar writes the backlight sysfs value when possible and otherwise calls logind's Session.SetBrightness, matching brightnessctl's write path without launching it. Configuring either scroll command replaces both built-in scroll directions.

Placeholders

PlaceholderDescription
{} / {percent}Brightness percent
{icon}Icon selected from the icons array by level

Styling

#brightness {
  background: linear-gradient(to top, #d3869b, mix(#d3869b, #fbf1c7, 0.3));
  color: #1b1a1a;
}

Last updated on

On this page