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.87k stars 424 forks source link

Can I use redshift to tell me whether or not it's nighttime? I want a script to automatically set the screen to max-dimness+redness on wakeup if it's dark out, and the only tricky bit is "is it dark out?", but redshift has already implemented that... #838

Open OwenAR opened 3 years ago

OwenAR commented 3 years ago

Title pretty much already summarized it all:

I want a script to automatically set the screen to max-dimness+redness on wakeup if it's dark out, and the only tricky bit is "is it dark out?"

But I figure redshift has already implemented a solution to that, so can I just get redshift to tell me?

(Is it maybe already an option? Nothing immediately jumped out at me from the manpage, but I only skimmed it so far.)

Thanks!

yannickperrenet commented 2 years ago

I actually did something similar: https://github.com/yannickperrenet/dotfiles/blob/master/.config/redshift/hooks/colorscheme.sh

(Make sure also that AppArmor isn't preventing the use of the .config/redshift/hooks directory, see #850.)