soft-brightness icon indicating copy to clipboard operation
soft-brightness copied to clipboard

[feature request] Combine laptop backlight and alpha overlay brigheness in the same slider

Open WaseemAlkurdi opened this issue 3 years ago • 3 comments

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!

WaseemAlkurdi avatar Apr 04 '21 10:04 WaseemAlkurdi

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 avatar Apr 08 '21 04:04 F-i-f

@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?

WaseemAlkurdi avatar Apr 08 '21 17:04 WaseemAlkurdi

Quite possibly, audio-output-switch is very nice.

F-i-f avatar May 21 '22 05:05 F-i-f