Jon Lund Steffensen
ebcfda765e
Merge manual mode from Joe Hillenbrand with some modifications.
2011-06-07 00:26:45 +02:00
Jon Lund Steffensen
38af3a0d5e
Allow brightness to be adjusted (between 10% and 100%, the latter being the default).
2011-04-21 00:23:50 +02:00
Jon Lund Steffensen
28d553ddbb
Merge Geoclue location provider by Mathieu Trudel-Lapierre with some tweaks.
2011-03-28 00:14:58 +02:00
Jon Lund Steffensen
9d7096d11c
Fix: return 0 in parse_gamma_string() on success.
2011-03-27 21:37:10 +02:00
Joe Hillenbrand
494d1e03de
Added feature to manually set temperature without needing location data.
2011-02-25 19:52:18 -08:00
Mathieu Trudel-Lapierre
3bf1f85267
Add first pass of Geoclue location provider.
2011-02-09 23:31:17 -05:00
Jon Lund Steffensen
5f68d4dfe4
Allow user to specify a configuration file on the command line that will
...
be parsed.
2010-10-18 00:58:00 +02:00
Jon Lund Steffensen
2b92b86857
Add configuration file support.
2010-10-15 12:43:48 +02:00
Jon Lund Steffensen
6f780c4063
Minor optimizations in selection of location provider and adjustment
...
method.
2010-10-15 00:52:19 +02:00
Jon Lund Steffensen
158de6e293
Add info on the neutral color temperature (6500K) in help output.
2010-10-09 23:04:43 +02:00
Jon Lund Steffensen
e850a58909
Provide feedback on what location provider/color adjustment method that
...
is used when none was specifically requested.
2010-06-30 20:29:32 +02:00
Jon Lund Steffensen
222c21e5d2
Add reset option (activated with -x) that removes any color adjustments
...
applied to the screen. Based on patch by Dan Helfman.
2010-06-10 20:14:13 +02:00
Jon Lund Steffensen
6e5ec155d1
Add comments about certain substring which must not be translated.
...
Fix help text that refered to the wrong command line parameter.
2010-06-10 13:28:30 +02:00
Jon Lund Steffensen
68a0d443d6
Clarify translation of help text for translators.
...
Clarify comment about use of strtof().
2010-06-04 21:57:39 +02:00
Jon Lund Steffensen
ba68997f7a
Use lower case for method and provider names.
2010-05-27 02:22:46 +02:00
Jon Lund Steffensen
441dae4a44
Split init function of methods and providers into init and start.
...
The set_option function can be called to set options between init
and start.
2010-05-27 02:20:29 +02:00
Jon Lund Steffensen
19f7343355
Let gamma methods and location providers print help on option parameters.
2010-05-27 00:17:47 +02:00
Jon Lund Steffensen
5be231ca8d
Remove unused parameters in help text output.
2010-05-25 01:35:54 +02:00
Jon Lund Steffensen
98cc1a5657
Fix build on mingw
2010-05-25 01:33:28 +02:00
Jon Lund Steffensen
38aea51b22
Add location provider that reads location from the gconf key associated
...
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-25 01:23:42 +02:00
Jon Lund Steffensen
cde909747c
Provide fundament for more advanced location providers.
2010-05-25 00:45:29 +02:00
Jon Lund Steffensen
65dd76a221
Use the prefix 'gamma' for gamma adjustment source files.
2010-05-24 23:37:36 +02:00
Jon Lund Steffensen
1d88c2b10c
Pass arguments as string to adjustment methods.
2010-05-24 21:26:06 +02:00
Jon Lund Steffensen
b1ab322cb5
Move gamma method spec structs to redshift.h
2010-05-24 20:06:14 +02:00
Jon Lund Steffensen
f8c3b9839d
Don't include gettext headers when NLS is disabled.
2010-05-24 18:24:56 +02:00
Jon Lund Steffensen
6f044ccad3
Use gamma_method_spec_t struct to control and iterate through different
...
gamma adjustment methods.
2010-05-24 18:12:36 +02:00
Jon Lund Steffensen
b41d891888
Clean up code for gamma adjustment methods.
2010-05-07 00:33:21 +02:00
Jon Lund Steffensen
52a5a370fd
systemtime.c: Portably read current time on posix and windows.
...
w32gdi.c: Implements gamma ramp method for Windows GDI API.
Use double as a cross platform time representation.
Add WinGDI as a selectable method (currently limitied to minimum 4500K).
Fix a bug where redshift would crash if RANDR failed and VidMode wasn't
compiled in.
2010-05-06 23:56:52 +02:00
Jon Lund Steffensen
fc47840a2c
Don't call setlocale if NLS was disabled.
2010-05-06 23:51:31 +02:00
Jon Lund Steffensen
9c2012b85e
Disable signal support if sys/signal.h was not found.
2010-05-06 23:50:23 +02:00
Jon Lund Steffensen
8583f11f21
Restructure help text and add comments for easier translation.
2010-05-05 22:37:41 +02:00
Jon Lund Steffensen
8c266ebb7a
Show default temperature values in help output.
2010-05-05 22:26:13 +02:00
Jon Lund Steffensen
ebd6c7b80a
Merge slightly altered patch from Alexandros Frantzis that allows adjusting individual CRTCs.
2010-05-04 23:42:10 +02:00
Alexandros Frantzis
9f6901aed3
Add support for changing the temperature of a specific CRTC (randr only).
2010-04-24 11:48:46 +03:00
Jon Lund Steffensen
da622908b0
redshift.c: Handle -? parameter. This is also used when a parameter is
...
not recognized.
Update translations.
2010-02-10 22:52:11 +01:00
Jon Lund Steffensen
e1f84c5c8d
Update help strings: --help does not actually work, change to -h.
...
Update po files.
2010-02-10 22:05:04 +01:00
Jon Lund Steffensen
a3f67071c1
redshift.c: Use LOCALEDIR define.
2010-02-10 21:58:06 +01:00
Jon Lund Steffensen
59db9546e5
Add gettext support in redshift.
2010-02-02 00:51:50 +01:00
Jon Lund Steffensen
8918855fee
Add some comments in the redshift.c.
2010-01-09 16:09:16 +01:00
Jon Lund Steffensen
1bb58377aa
Fix formating of help message.
2010-01-09 16:02:45 +01:00
Jon Lund Steffensen
32e61ecff6
Switch between enabled and disabled on USR1 signal.
...
Transition between the two states.
2010-01-09 15:52:51 +01:00
Jon Lund Steffensen
9c3d89dc52
Fix: Terminate loop immediately on second exit signal.
2010-01-07 20:15:46 +01:00
Jon Lund Steffensen
a29a578b32
Handle both INT and TERM signals as exit signals.
2010-01-07 20:12:38 +01:00
Jon Lund Steffensen
0c8cb0e28c
Make a short transition back to 6500K on program exit.
2010-01-01 21:00:08 +01:00
Jon Lund Steffensen
b61c9d59d7
Reuse X connection when adjusting gamma ramps.
...
Save gamma ramps when program starts and restore them on exit (only RANDR).
Try both RANDR and VidMode if nothing was specified, otherwise try only the
specified method.
2010-01-01 19:24:01 +01:00
Jon Lund Steffensen
b3cbfa061d
Use clock_gettime() to read current time.
2009-12-28 15:00:47 +01:00
Jon Lund Steffensen
1846f040ea
Continously change color temperature (Add -o for one shot mode).
...
In continous mode, make a short transition from 6500K to the target
temperature when the program starts.
2009-12-26 00:07:01 +01:00
Jon Lund Steffensen
bb5a75db6d
Allow compile time selection of which method to compile in.
2009-12-25 19:43:24 +01:00
Jon Lund Steffensen
af292839cf
Accept method names with different case.
2009-12-25 17:09:08 +01:00
Jon Lund Steffensen
f7548343c8
Allow selection of X screen to apply adjustments to.
2009-12-25 16:30:56 +01:00