Skip to content

Module: Brightness

DreamMaoMao edited this page Aug 29, 2026 · 1 revision

Module: Brightness

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": ["󰃞", "󰃟", "󰃝", "󰃝", "󰃠", "󰃠", "󰃠"],
    "on-scroll-up": "bash ~/.config/mango/scripts/brightness.sh bup",
    "on-scroll-down": "bash ~/.config/mango/scripts/brightness.sh bdown",
    "on-click": "brightnessctl set 1%"
}

Options

Option Type Default Description
format string Display format (see placeholders)
icons string array Nerd-font icons shown by brightness level
device string auto Backlight device under /sys/class/backlight

Placeholders

Placeholder Description
{} / {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;
}

Clone this wiki locally