jonls / redshift

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
http://jonls.dk/redshift
GNU General Public License v3.0
5.82k stars 424 forks source link

disable on screensaver start #889

Open blaineclrk opened 9 months ago

blaineclrk commented 9 months ago

No problem, just a minor wish. Could Redshift be disabled when a screensaver starts? I use Xscreensaver and most of the modules look much better when Redshift is off. Is there a way to build this into Redshift or to included an option in the config file?

Describe alternatives you've considered I've contacted the developer of Xscreensaver and this is his response: On Sep 25, 2023, at 3:36 PM, Blaine Clark ****@gmail.com wrote:

Hello Mr. Zawinski;

Thank you and the crew for Xscreensaver. My wife and I have used desktop Linux full time since 07 and we've enjoyed Xscreensaver all that time.

Glad you like it!

I replace the default screensavers with Xscreensaver each time we've re-installed. We've both used Redshift (QRedshift) for ages too, and I've noticed that the colors of most of the Xscreensaver modules are so much better and prettier when Redshift is disabled. Is there a way you could add an option to disable Redshift when the Xscreensaver is activated and re-enable Redshift when Xscreensaver quits?

-- Jamie Zawinski • jwz.org • dnalounge.com

I looked into this a little bit, and this is probably a feature that needs to be built into Redshift instead of XScreenSaver. Redshift works by altering the global display gamma, and XScreenSaver could be modified to change that to a neutral value at blank time and change it back after, but according to https://wiki.archlinux.org/title/Redshift "Redshift will continuously update the color temperature at regular intervals", so that won't work. The two of them will just fight with each other.

Redshift could have an option to use a neutral gamma while a screen saver is running. You should ask them for that.