aabytt / custom-screensaver-aerial

Aerial screensaver for webOS
MIT License
9 stars 4 forks source link

Feature request: maximum brightness #19

Open stamminator opened 1 month ago

stamminator commented 1 month ago

First of all, fantastic app. The 4K HDR video sources you've found look incredible on my TV.

I'd love the ability to specify a maximum brightness for when the screensaver kicks in. For example, If the brightness is above, say, 60% when the screensaver kicks in, automatically lower it to 60% and restore it to its previous value when the screensaver exits.

If it helps, here is an example of the luna commmands which adjust brightness: https://github.com/stamminator/webos-adjust-backlight/blob/main/adjust-backlight.sh

aabytt commented 1 month ago

There should be no problem with reading the actual value and adjusting it to a desired level when screensaver kicks in but not sure on how to restore it on exit.

stamminator commented 1 month ago

@aabytt Is the main problem that there's no exit event that gets triggered?

aabytt commented 1 month ago

@stamminator yeah Thinking to play with webos window type. Change it from screensaver to overlay. The app will no longer be handled as standard screensaver by webos but we'll be able to set exit triggers. And it also should make the video overlay possible on older webos versions (does not work on webos < 5 now).