aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* statusicon: Only add autostart control when supportedJon Lund Steffensen2017-07-301-10/+11
|
* controller: Emit signal when stoppedJon Lund Steffensen2017-07-302-2/+9
|
* utils: Make xdg module optionalJon Lund Steffensen2017-07-301-7/+25
|
* Move RedshiftController to controller.pyJon Lund Steffensen2017-07-303-251/+296
|
* Limit lines to 80 charsFaheel Ahmad2017-07-291-4/+4
|
* Fix #474: Format help text paragraph to 80 chars maxFaheel Ahmad2017-07-271-4/+3
|
* Merge pull request #420 from jonls/default-temperatureJon Lund Steffensen2017-01-141-2/+2
|\ | | | | redshift.c: Use 6500K and 4500K by default
| * redshift.c: Use 6500K and 4500K by defaultJon Lund Steffensen2017-01-081-2/+2
| |
* | Merge pull request #421 from jonls/randr-adjust-multipleJon Lund Steffensen2017-01-142-9/+59
|\ \ | |/ |/| XRandR: Allow multiple but not all CRTCs to be redshifted
| * XRandR: Allow multiple but not all CRTCs to be redshiftedLennart Sauerbeck2017-01-082-9/+59
| | | | | | | | | | | | | | | | | | | | | | | | Previously only one CRTC could be set in the configuration file for redshifting when XRandR mechanism was being used. That is fine for a setup with two displays but breaks when three or more displays are in use and one of those shouldn't be redshifted (e.g. two computer displays and one TV connected to the computer). The config value 'crtc' for method xrandr can now be entered as comma separated list of multiple CRTCs. All CRTCs in the list will be redshifted while all those not in the list will not be touched.
* | Fix Windows build after e0a617fcada616a8112f7d9df51ac10bd58130afArne Janbu2016-10-192-2/+7
|/
* Merge pull request #383 from jonls/icon-tooltipJon Lund Steffensen2016-10-151-0/+8
|\ | | | | add display of color temperature and period in the tooltip status icon
| * add display of color temperature and period in the tooltip status iconAndreev Alexander2016-10-151-0/+8
| |
* | drm: Avoid using alloca()Jon Lund Steffensen2016-10-151-2/+3
|/
* redshift-gtk: Make sure that child process is closed after signalsJon Lund Steffensen2016-01-021-27/+30
| | | | | | | | Instead of calling sys.exit() the signal handlers now try to terminate the child process. After the child exits, the process will be reaped by the GLib callback which will call Gtk.main_quit() which will then quit redshift-gtk. This ensures that the redshift process does not outlive the redshift-gtk process.
* Fix #213: Merge branch 'pull-213'Jon Lund Steffensen2015-12-284-69/+149
|\
| * Move signal processing functions and sigaction calls to signals from redshift.cMattias Andrée2015-12-284-72/+152
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | Merge pull request #244 from jubalh/masterJon Lund Steffensen2015-12-285-8/+8
|\ \ | | | | | | Remove trailing whitespaces
| * | Remove trailing whitespacesMichael Vetter2015-08-045-8/+8
| |/
* | Fallback if AppIndicator3 req. version unavailableJavier Cantero2015-11-151-1/+1
| | | | | | | | | | Catch in the except block the case when the required version of Appindicator3 is not available to also fallback in GtkStatusIcon widget.
* | Also specify required AppIndicator3 versionJavier Cantero2015-11-141-0/+1
| | | | | | | | | | Avoid another GObject Introspection warning in redshift-gtk by providing the required version of AppIndicator3 before import it.
* | Specify required Gtk versionChristian Stadelmann2015-11-031-0/+3
|/ | | This fixes a warning when starting redshift-gtk with gtk 3.18.
* Merge pull request #197 from forivall/clamp-fixJon Lund Steffensen2015-05-101-7/+3
|\ | | | | Fix clamp issues
| * Fix CLAMP macro overwritten by glib headersJordan Klassen2015-05-021-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #188 When I moved the macro definition below all of the includes, I got the following compiler warning: /usr/include/glib-2.0/glib/gmacros.h:246:0: note: this is the location of the previous definition #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) So, that's the macro definition that was being used whenever "CLAMP" was used. It's pretty obvious what went wrong.
* | remove unnecessary null-checks, it is safe to pass NULL to free (per documentation)Mattias Andrée2015-05-073-6/+5
|/ | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* Fix #174: Use nanosleep() instead of usleep()Jon Lund Steffensen2015-02-221-1/+5
| | | | | usleep() cannot sleep for more than 1000000 microseconds on certain platforms. nanosleep() does not have this limitation.
* Fix #162: Ensure that interpolation alpha is in [0;1]Jon Lund Steffensen2015-01-151-3/+5
|
* fixes jonls/redshift#157 introduced by jonls/redshift@f9c2a1568c308ec69970662a8f5ceb8726e8d8ccChristian Burger2015-01-101-2/+2
|
* redshift: Add print_location() functionJon Lund Steffensen2015-01-041-17/+22
|
* w32gdi: Add preserve option to windows GDI methodJon Lund Steffensen2015-01-042-7/+30
|
* vidmode: Add preserve option to VidMode methodJon Lund Steffensen2015-01-042-7/+22
|
* quartz: Add preserve option to Quartz methodJon Lund Steffensen2015-01-042-41/+133
| | | | | | | | | | | | This change adds the preserve option to the quartz method which makes it base the temperature adjustments on the existing gamma ramps when set. This requires that the existing gamma ramps are saved at start-up which this commit also adds. One drawback is that the list of displays is enumerated at start-up now which means that Redshift will likely not affect displays that are connected after start-up. This could be fixed in the future by listening to reconfiguration events.
* randr: Add preserve option to RandR methodJon Lund Steffensen2015-01-042-8/+22
|
* colorramp: Use supplied gamma ramps as initial valueJon Lund Steffensen2015-01-046-6/+51
| | | | | | | | | This changes colorramp_fill() to base the ramp calculations on the existing values in the supplied tables, instead of basing it on a pure `i/size` value computed on the fly. All gamma adjustment methods are changed to explicitly initialize the ramps to the `i/size` value before calls to colorramp_fill().
* redshift: Add gamma_is_valid function to check gammaJon Lund Steffensen2015-01-041-12/+15
| | | | | This checks whether the gamma values are within the bounds of MIN_GAMMA and MAX_GAMMA.
* redshift: Add transition scheme type with color settingsJon Lund Steffensen2015-01-041-125/+122
| | | | | | | This changes the transition_levels_t to transition_scheme_t and adds two fields day, night of type color_setting_t. This encapsulates all the information needed to calculate the current color setting from an elevation.
* redshift: Make transition levels parameter to related functionsJon Lund Steffensen2015-01-041-33/+56
| | | | | | Moves transition_low and transition_high from globals into a struct transition_levels_t that is created in main and passed to the relevant functions.
* redshift: Move continual loop mode to separate functionJon Lund Steffensen2015-01-041-222/+241
|
* Add location_t type with lat/lon fieldsJon Lund Steffensen2015-01-0410-43/+56
|
* redshift: Add noop pause() macro on windows platformJon Lund Steffensen2015-01-041-0/+5
| | | | | | Build failed on windows platform since pause() is not available. The function is not needed on the windows platform so we just define a noop pause() macro.
* Fix #152: redshift: Loop in reset/manual/one-shot mode with QuartzJon Lund Steffensen2015-01-041-0/+23
| | | | | | | The gamma adjustments made with the Quartz (OSX) method are tied to the process so when we exit, the gamma adjustments are reset. Therefore we need to run a loop that breaks on CTRL-C, after the gamma adjustments are made.
* Fix #153: geoclue2: Set desktop id on GeoClue2 clientJon Lund Steffensen2015-01-021-1/+18
| | | | | This property needs to be set in the latest versions of GeoClue2, but it is not available in early versions.
* redshift: Fix untranslated status stringsJon Lund Steffensen2014-12-301-3/+3
|
* Merge branch 'hooks-dir'Jon Lund Steffensen2014-12-285-8/+171
|\
| * redshift: Add hooks for user actions on period switchJon Lund Steffensen2014-12-284-0/+162
| | | | | | | | | | | | | | | | | | | | | | | | Hooks are executable scripts in ~/.config/redshift/hooks/ that are run when a certain event happens. The first parameter to the script indicates the event and further parameters may indicate more details about the event. The event "period-changed" is indicated when the period changes ("night", "daytime", "transition"). The second parameter is the old period and the third is the new period. The event is signaled when Redshift starts up with the old period set to "none".
| * redshift: Move period_t to headerJon Lund Steffensen2014-12-282-8/+9
| |
* | redshift: Add translation comment on period name NoneJon Lund Steffensen2014-12-281-0/+1
| |
* | redshift: Add translation of Daytime/Night in new gamma stringJon Lund Steffensen2014-12-281-2/+4
| |
* | redshift: Add translation comment to N,S,W,E stringsJon Lund Steffensen2014-12-281-3/+16
| |
* | location: Make translated string about recheck shared between all providersJon Lund Steffensen2014-12-283-9/+9
| |