soft-brightness
soft-brightness copied to clipboard
[feature request] Combine laptop backlight and alpha overlay brigheness in the same slider
It would be nice if there was an option to give, say, the upper 50% of the slider to setting the laptop's brightness, with the lower 50% controlling the alpha overlay. This would be far better for controlling the brightness than having two brightness controls, one being the usual slider for the overlay, and the other being Fn+F? for the panel's brightness. I tried implementing this myself, but I didn't have an idea as to where to start.
The way this would be implemented might be something like this (pseudocode):
if (brighness slider > 50%) {
setDisplayBrightness(full_brightness);
setOverlayBrightness(brightness slider / 2);
} else {
setDisplayBrightness(brightness slider / 2);
setOverlayBrightness(0);
Thanks in advance!
There's a pull request that implements what you requested. However no thought has been given about how it should behave when multiple monitors are plugged in, and that's why it's not been merged. Feel free to improve on it, this is not currently a high priority.
@F-i-f Thanks for the link! Would something like having tabs or a source list a la https://extensions.gnome.org/extension/751/audio-output-switcher/ but with displays be a feasible fix?
Quite possibly, audio-output-switch is very nice.