Polybar Modules backlight - ulises-jeremias/dotfiles GitHub Wiki
🔆 Polybar Module: Backlight
The Backlight modules in this setup allow you to display and control your screen brightness directly from your Polybar.
[!TIP] These modules support different backends (
xbacklight
,acpi
) to adapt to your hardware configuration. Choose the one that fits your system.
📦 Available Modules
modules/xbacklight
– Usesxbacklight
to read and set brightnessmodules/backlight-acpi
– Usesacpi
for systems with ACPI backlight supportmodules/backlight-acpi-bar
– Same as above, but includes a visual progress bar in the module
⚙️ Functionality
Each module offers interactive features:
- Scroll Up: Increase brightness by 5% per scroll
- Scroll Down: Decrease brightness by 5% per scroll
- Left Click: Toggle Redshift (night mode)
[!TIP] Behavior may vary depending on whether your system supports
xbacklight
oracpi
. You may need to test and switch modules based on your setup.
📁 Configuration Path
You can find these modules in your dotfiles under:
~/.config/polybar/modules/
To enable one of them, reference it in your Polybar config file (e.g., config.ini
).
🆘 Troubleshooting
- Ensure the appropriate backend (
xbacklight
oracpi
) is installed and supported by your system - Check permissions for backlight control in
/sys/class/backlight
Enjoy quick and intuitive brightness control — with a Redshift toggle baked right into your bar! 🌅