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.89k stars 428 forks source link

redshift-gtk: add an option to set color temperature manually #395

Open unxed opened 7 years ago

unxed commented 7 years ago

or to set time of a day to set color temperature according to insolation in that time in current location

edmundlaugasson commented 7 years ago

+1 Would also appreciate that idea! Would like also at day time take temperature down. Could not find redshift-gtk configuration file, otherwise would change it manually. Certainly changing graphically (from systray icon) would be appreciated.

chiraag-nataraj commented 7 years ago

I believe you can create the configuration file in ~/.config/redshift.conf or create it anywhere and use redshift -c to load it 🙂. There is a config file example in the manpage.

temporaryrespite commented 4 years ago

already exists -O TEMP One shot manual mode (set color temperature) redshift 1.12

unfortunately it's bugged: subsequent executions make it go more red or more blue redshift -O 3000 (run it twice to get more red the second time) redshift -O 8000 (run it twice to get more blue the second time) workaround: redshift -x to reset to 6500K prior to running with -O.

It seems to me it's using current gamma values rather than some default 6500K(or whichever) when computing the target kelvin rgb gamma values.

I'll look into it...

temporaryrespite commented 4 years ago

well, I guess maybe this was intended? but the workaround(I'll say) is to also use "-P" -P Reset existing gamma ramps before applying new color effect So this sets/keeps the right color temperature: redshift -O 3000 -P

EDIT: and for this to work on tty/console: redshift -O 3000 -P -m drm otherwise it assumes -m randr

EDIT2: I've just realized that this issue is about redshift-gtk (GTK!) whatever that is, presumably different than redshift from command line. Sorry for the noise then.

jonls commented 4 years ago

Blocked on #54. I think D-Bus or similar is the only sensible solution to more interactive controls like suggested here.