Sct – set color temperature
tedunangst.com
tedunangst.com
The location information is used so that redshift can alter the colour temperature during the day (less needed) and dusk, evening and night (very needed).
Those of us using Redshift are not doing so for a one off colour temperature set, but because it is continually updated through the day and night.
You can tell it your location manually or have it done automatically.
Redshift is open source. It does not have binary blobs, patents, a business model and similar crud that f.lux does. Adjust your paranoia/expectations as needed.
I use CF.lumen on Android and Redshift on Linux and I have to regularly shift the fake locations I give them in order to have them do what I want. At least with Redshift on Linux I can script it...
In any event it is open source, so you can change the code as you deem fit :)
Yep, that’s great!
So, why not just ask for the location instead of bundling 200MB of crap to get it?
It would be absurd for Redshift to include its own networking (don't forget proxies and SSL), GPS, and other code. On Linux (Ubuntu especially), all those dependencies are installed by default and used by many other components. "crap" is the last thing to describe it.
OpenBSD doesn't have them by default which is why they show up. Redshift does support specifying your location on the command line or config file. gentoo has use flags where you can explicitly include (eg +geoclue) or exclude (eg -geoclue) components. I suspect OpenBSD doesn't, so it came down to whoever authored their port deciding to use geoclue by default.
It is an entirely reasonable decision. You use this software on personal machines (ie not servers), and people move around. Defaulting to something that usually works right is fine.
You are of course welcome to do a competitor, and show us all how much better it could be :-)
It makes more sense to have a core app that does the basic functionality and can be run from CLI, and then separate out the the various components that perform different duties and require more dependencies etc, in a modular architecture. It's just better software design and you avoid a lot of pitfalls and hassle to end-users and integrators - just like the issue described by the OP.
Solar noon details here: http://blog.poormansmath.net/images/SolarTimeVsStandardTimeV...
Isn't this a perfect example where using more than localtime() is pointless? Just because it's dark all the time outside you don't want your screen to be red-ish all the time. And in summer you want the effect if you try to sleep, even if the sun is still relatively high.
I generally have a hard time getting to sleep, and most mornings feel like I've been run over by a steamroller, so I don't mind a little red tint if it makes even a tiny difference in the quality of my sleep.
[0] https://en.wikipedia.org/wiki/Delayed_sleep_phase_disorder
I can understand wanting the screen to tint reddish when it's 9 or 10 pm, because I should be going to bed soon.
I don't necessarily want it changing colors at 4pm when it starts getting dark here in the winter. At 4:00, I still need to be up for another 6-10 hours.
https://gist.github.com/hrj/e9ed0d73d2daaa98b2d2
Been using that for more than an year with great results.
I also have another version of it: https://gist.github.com/hrj/6561271
(this version cuts the green and blue equally)
On Ubuntu includes are apparently broken, complaining about strings.h included from Xlibint.h ...
There's probably a yak to shave in that. However, if you're lazy and hit the same problem, you can compile a functional sct by lifting declarations of i and c outside their loops and dropping "-std=c99" from the command line.
#include <stdio.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdarg.h>
#include <math.h>
#include <X11/Xlib.h>
#include <X11/Xlibint.h>
#include <X11/Xproto.h>
#include <X11/Xatom.h>
#include <X11/extensions/Xrandr.h>
#include <X11/extensions/Xrender.h>Or maybe it's a similar situation but actually related to "feature test macros" (see https://lwn.net/Articles/590381/)
My terminal/editor have always been dark background, but eventually I had enough of the web's blinding conventions [0], and installed a browser extension. But it doesn't work as well as it should and I'm thinking a blanket inversion would be preferable.
It seems like xcalib (and associated machinery) only supports a simple RGB LUT though, which means green turns to purple etc. It's unfortunate that it doesn't have the universal approach of LUT->matrix->LUT like a calibratable monitor, so the invert could be done in say HSV space.
[0] White paper makes sense because it's a reflective medium that relies on ambient light. A glaring white background is the wrong choice for an emissive display. Notice how visual art applications (photoshop, maya, etc) default to a grey background and dark color scheme.
> You start by getting information for each Canadian Radio-television and Telecommunications Commission (CRTC)
wait, hold on a minute
Mention the letters to CRTC to any Canadian and that's what they think about.
The letters CRTC are in some of the function calls.
Over the years I've decided the gradual adjustment lat/long bits are really a negative feature. It engineer cool but it's counterproductive to the goal.
I want the monitor dim between 7pm and 630am regardless of time of year so I cronned that into redshift.
Your body clock probably wants the full blue light in the am fwiw.
I'll give sct a try to see if its more pleasing to the eye.
"Help us Test the Adjustments for Color Deficiency"
http://blog.jetbrains.com/idea/2015/09/intellij-idea-15-eap-...
I was delighted to see this feature. One of those facepalm moments that quickly transitions from "neat!" to "why didn't I think of that?"
Having an OS level system wide setting might be useful.
It doesn't do anything fancy with geolocation, I tend to just tweak the sliders every now and then depending on what my eyes tell me :)
redshift -m dummy | while read line;do sct "${line/Temperature: /}";doneAnyone happen to know what license it was released under?
Here it is: https://github.com/faf0/sct
Compiles on Ubuntu 14.04.