aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-08-16Fix #105: Limit decimals in displayed location to twoJon Lund Steffensen1-1/+1
2014-08-16Fix #90: Print N/S and E/W in the locationMattias Andrée1-2/+4
2014-05-07Add support for custom transition start and end elevationMattias Andrée1-9/+30
Implemented through config options transition-high and transition-low (there is no command line switch at this point). Determines at what solar elevation Redshift will change from night to transition period to day. Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-05-07Fix #41: Do not jump to 0 % or 100 % when changing direction of transitionMattias Andrée1-55/+26
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-22Support for running Redshift without a graphical environment in Linux by using Direct Rendering ManagerMattias Andrée1-0/+19
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-13Free resources from config-ini.c on exitMattias Andrée1-0/+2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2013-12-09Only start "dummy" gamma method if explicitly requestedJon Lund Steffensen1-4/+6
2013-12-09Remove Gnome Clock location providerJon Lund Steffensen1-21/+0
This was basically a hack that happened to work because the Gnome Clock applet could store the current location of the user, and Redshift was able to fetch this location through GConf. Since Redshift for some time now has supported a config file where the location can be set, there is not really any reason to use an external, fragile solution to do the same.
2013-12-09Do not allow NULL keys when setting optionsJon Lund Steffensen1-10/+25
This should fix a bug where command line options for the "manual" location provider cannot override the config file. To keep compatability with previous versions the command line parser will still special case parsing "-l LAT:LON" and set the correct options in "manual".
2013-12-09When in print mode do not start a gamma methodJon Lund Steffensen1-27/+31
A gamma method is not needed in print mode
2013-12-09Add dummy gamma adjustment methodJon Lund Steffensen1-5/+11
This method does not do anything but print the temperature to the terminal. An external program implementing a color temperature adjustment scheme that is not supported by redshift can use this method to determine the desired color temperature. It is also useful for testing other parts of redshift on systems where neither RandR nor VidMode works.
2013-12-08Fix newline in help output textJon Lund Steffensen1-1/+1
2013-10-21colorramp: Use new color ramp table provided by Ingo Thies.Jon Lund Steffensen1-6/+6
This table is calculated by the actual Planckian locus below 5000K, and by CIE daylight standard above 5000K. Also, the new table applies proper gamma correction according to sRGB. More information can be found in README-colorramp.
2013-10-21Fix typos (Benjamin Kerensa)Jon Lund Steffensen1-2/+2
2013-10-21Fix slight wobble in temperature caused by float.Jon Lund Steffensen1-1/+1
The transition variable 'adjustment_alpha' is a float. Redshift will wobble between 6499 and 6500K as the float runs out of precision. Using a double seems to solve the issue. (Thanks to Sean Hildebrand)
2012-02-02Also print status on start up.Jon Lund Steffensen1-0/+4
2011-12-04Print status message when redshift is enabled/disabled by SIGUSR1.Jon Lund Steffensen1-6/+10
2011-11-27add -p option for print mode.Vincent Breitmoser1-2/+11
This mode only prints the current screen parameters and exits. Useful for quick lookup of this value for use in scripts.
2011-10-18Add various documentation updates: DESIGN and HACKING document, and various small comments int the source (Christian Jaeger).Jon Lund Steffensen1-1/+6
Update man page with information on configuration file.
2011-10-18Set buffering on stdout and stderr to line-buffered.Jon Lund Steffensen1-0/+7
Previously stdout would be block buffered and stderr unbuffered when writing to a non-terminal. This code works on Debian with libc 2.11.2. The man page of setvbuf mentions that NULL can be used to avoid affecting the used buffer, but doesn't mention whether the size argument is then ignored; testing on Debian has revealed that this code works as intended, but I don't know whether that's standard. (Christian Jaeger)
2011-10-18Allow separate brightness for day and night (Olivier Fabre and Jeremy Erickson).Jon Lund Steffensen1-30/+87
2011-07-05Fix build on windows platform.Jon Lund Steffensen1-6/+6
2011-07-04Document brightness (-b) option switch.Jon Lund Steffensen1-1/+2
2011-07-04Add option to show program version (-V).Jon Lund Steffensen1-3/+8
2011-07-04Use signal.h instead of sys/signal.h for POSIX compliance.Albert Lee1-7/+7
2011-04-21Allow brightness to be adjusted (between 10% and 100%, the latter being the default).Jon Lund Steffensen1-4/+30
2011-03-27Fix: return 0 in parse_gamma_string() on success.Jon Lund Steffensen1-0/+2
2011-02-25Added feature to manually set temperature without needing location data.Joe Hillenbrand1-42/+78
2011-02-09Add first pass of Geoclue location provider.Mathieu Trudel-Lapierre1-0/+21
2010-10-18Allow user to specify a configuration file on the command line that willJon Lund Steffensen1-5/+14
be parsed.
2010-10-15Add configuration file support.Jon Lund Steffensen1-58/+215
2010-10-15Minor optimizations in selection of location provider and adjustmentJon Lund Steffensen1-2/+4
method.
2010-10-09Add info on the neutral color temperature (6500K) in help output.Jon Lund Steffensen1-1/+11
2010-06-30Provide feedback on what location provider/color adjustment method thatJon Lund Steffensen1-2/+6
is used when none was specifically requested.
2010-06-10Add reset option (activated with -x) that removes any color adjustmentsJon Lund Steffensen1-55/+98
applied to the screen. Based on patch by Dan Helfman.
2010-06-10Add comments about certain substring which must not be translated.Jon Lund Steffensen1-2/+6
Fix help text that refered to the wrong command line parameter.
2010-06-04Clarify translation of help text for translators.Jon Lund Steffensen1-2/+4
Clarify comment about use of strtof().
2010-05-27Use lower case for method and provider names.Jon Lund Steffensen1-6/+6
2010-05-27Split init function of methods and providers into init and start.Jon Lund Steffensen1-24/+133
The set_option function can be called to set options between init and start.
2010-05-27Let gamma methods and location providers print help on option parameters.Jon Lund Steffensen1-0/+38
2010-05-25Remove unused parameters in help text output.Jon Lund Steffensen1-2/+0
2010-05-25Fix build on mingwJon Lund Steffensen1-0/+1
2010-05-25Add location provider that reads location from the gconf key associatedJon Lund Steffensen1-1/+17
with the GNOME Clock applet. The implementation is rather simplistic as it only reads the location once on init but that'll have to do for now.
2010-05-25Provide fundament for more advanced location providers.Jon Lund Steffensen1-22/+120
2010-05-24Use the prefix 'gamma' for gamma adjustment source files.Jon Lund Steffensen1-7/+7
2010-05-24Pass arguments as string to adjustment methods.Jon Lund Steffensen1-30/+14
2010-05-24Move gamma method spec structs to redshift.hJon Lund Steffensen1-14/+1
2010-05-24Don't include gettext headers when NLS is disabled.Jon Lund Steffensen1-1/+1
2010-05-24Use gamma_method_spec_t struct to control and iterate through differentJon Lund Steffensen1-170/+108
gamma adjustment methods.
2010-05-07Clean up code for gamma adjustment methods.Jon Lund Steffensen1-52/+65