Files
dotfiles/quickshell/CONTINUATION_BRIGHTNESS.md
T
2026-11-17 18:15:16 +07:00

8 lines
980 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Brightness stage
Added `backend/brightness.py`, `services/BrightnessController.qml` and backlight sliders to `BatterySettings.qml`.
Requires `brightnessctl` and permission to change `/sys/class/backlight` (typically udev/logind ACL or a suitable group). No sudo or shell invocation is used. Only devices reported as `backlight` by brightnessctl are offered; brightness is clamped to 1–100% to avoid an accidentally black display. Backend validates device identifiers and current enumerated devices before writes. Hardware changes refresh every 10 seconds. Multiple backlights are displayed separately.
Known limitations: power settings remain hidden on desktops without a battery, so this brightness UI is not accessible there; backlight controls do not apply to external DDC/CI monitors. QML was not runtime-tested in Hyprland. Test with `brightnessctl -m -l`, adjust slider, verify with `brightnessctl -m -l` and restore original brightness. Hyprlock/hypridle unchanged.