aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-04randr: Add preserve option to RandR methodJon Lund Steffensen2-8/+22
2015-01-04colorramp: Use supplied gamma ramps as initial valueJon Lund Steffensen6-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().
2015-01-04redshift: Add gamma_is_valid function to check gammaJon Lund Steffensen1-12/+15
This checks whether the gamma values are within the bounds of MIN_GAMMA and MAX_GAMMA.
2015-01-04redshift: Add transition scheme type with color settingsJon Lund Steffensen1-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.
2015-01-04redshift: Make transition levels parameter to related functionsJon Lund Steffensen1-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.
2015-01-04redshift: Move continual loop mode to separate functionJon Lund Steffensen1-222/+241
2015-01-04Add location_t type with lat/lon fieldsJon Lund Steffensen10-43/+56
2015-01-04NEWS: Fix date for 1.10 releaseJon Lund Steffensen1-2/+2
2015-01-04contrib: Update Fedora spec for 1.10Jon Lund Steffensen1-1/+4
2015-01-04Import translations from launchpadJon Lund Steffensen31-1146/+1867
2015-01-04redshift: Add noop pause() macro on windows platformJon Lund Steffensen1-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.
2015-01-04NEWS: Update for 1.10 releaseJon Lund Steffensen1-0/+26
2015-01-04NEWS: Rename to NEWS.md and markdown formatJon Lund Steffensen2-128/+147
2015-01-04configure.ac: Update version to 1.10Jon Lund Steffensen1-1/+1
2015-01-04Fix #152: redshift: Loop in reset/manual/one-shot mode with QuartzJon Lund Steffensen1-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.
2015-01-02Fix #153: geoclue2: Set desktop id on GeoClue2 clientJon Lund Steffensen1-1/+18
This property needs to be set in the latest versions of GeoClue2, but it is not available in early versions.
2014-12-30Update po filesJon Lund Steffensen29-2120/+2291
2014-12-30redshift: Fix untranslated status stringsJon Lund Steffensen1-3/+3
2014-12-28README: Add flattr button at the endJon Lund Steffensen1-0/+5
2014-12-28redshift.1: Add description of hooks in man pageJon Lund Steffensen1-0/+19
2014-12-28redshift.1: Update outdated information in man pageJon Lund Steffensen1-5/+17
Clarify use of options and `list` for for methods and providers. Add missing information on configuration file options. Update issue tracker web address.
2014-12-28Update po filesJon Lund Steffensen29-3950/+8790
2014-12-28redshift: Add translation comment on period name NoneJon Lund Steffensen1-0/+1
2014-12-28redshift: Add translation of Daytime/Night in new gamma stringJon Lund Steffensen1-2/+4
2014-12-28redshift: Add translation comment to N,S,W,E stringsJon Lund Steffensen1-3/+16
2014-12-28location: Make translated string about recheck shared between all providersJon Lund Steffensen3-9/+9
2014-12-28corelocation: Fix missing space character in stringJon Lund Steffensen1-1/+1
2014-12-28systemtime: Add function wrapping platform sleep functionJon Lund Steffensen3-8/+17
Adds systemtime_msleep() which sleeps for a number of milliseconds. This wraps Sleep() on windows and usleep() on other platforms.
2014-12-28systemtime: Fix includes and check for _POSIX_TIMERSJon Lund Steffensen2-9/+8
Fix missing include of windows.h on windows platform. Change check for _POSIX_TIMERS to check that it is greater than 0. On OS X, the POSIX timers are not available and _POSIX_TIMERS is -1.
2014-12-28contrib: Add appdata file to RPM packageJon Lund Steffensen1-0/+1
2014-12-28redshift: Add hooks for user actions on period switchJon Lund Steffensen4-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".
2014-12-28redshift: Move period_t to headerJon Lund Steffensen2-8/+9
2014-12-28redshift: Add enum member for unknown period_t (PERIOD_NONE)Jon Lund Steffensen1-2/+5
2014-12-28redshift: Properly handle errors in sigactionJon Lund Steffensen1-4/+19
2014-12-27redshift: Fix translation of period namesJon Lund Steffensen1-5/+9
The static string array period_names contains strings that are printed but these were not marked for translation. This is fixed now by adding the _N() macro and calling gettext() when the strings are used.
2014-12-27redshift: Only print period information when it changesJon Lund Steffensen1-9/+65
This change adds functions to determine what the current period is so we can keep track and only print the period when it changes.
2014-12-27redshift: Be less verbose when color values did not changeJon Lund Steffensen1-2/+20
This keeps a copy of the previous color_setting_t in the loop so that we can avoid printing the color temperature and brightness if they did not change.
2014-12-27redshift: Change duration of sleep to macroJon Lund Steffensen1-5/+8
2014-12-27redshift: Simplify set_temperature by passing color_setting_tJon Lund Steffensen16-70/+77
Changes all set_temperature function in gamma adjustment methods to take a color_setting_t pointer with the color settings. Colorramp functions are similarly changed to take a color settings struct.
2014-12-27redshift: Add config setting to set gamma separately for day/nightJon Lund Steffensen1-1/+25
These settings are gamma-day and gamma-night. The setting gamma will still override both the daytime and nighttime gamma setting.
2014-12-27redshift: Move color settings into struct for periodJon Lund Steffensen2-70/+127
Move color settings (temperature, gamma and brightness) into a struct for each period (day, night). Change the interpolation function to interpolate all values between these structs.
2014-12-27redshift: Use double for interpolation functionJon Lund Steffensen1-4/+4
2014-12-21redshift-gtk: Split status icon into controller and interfaceJon Lund Steffensen1-169/+259
This splits the user interface into, RedshiftController, a GObject subclass that takes care of starting and interacting with the child process, and RedshiftStatusIcon providing the actual user interface.
2014-12-18redshift-gtk: Add docstrings in statusicon moduleJon Lund Steffensen1-2/+46
2014-12-18redshift-gtk: Ignore exception in termwait when child is goneJon Lund Steffensen1-2/+6
The termwait method is used to wait until the child process has quit. Previously this would fail with an exception if the child has already quit. This is now ignored.
2014-12-18redshift-gtk: Remove unnecessary semi-colons at end-of-lineJon Lund Steffensen1-4/+4
2014-12-18redshift-gtk: Show errors from child process in a dialogJon Lund Steffensen1-4/+19
This dialog is shown whenever the child process exits with a non-zero status. The error output from stderr of the child process is buffered in redshift-gtk in case the child exits unexpectedly.
2014-12-15Add CoreLocation (OSX) location providerJon Lund Steffensen6-0/+303
Similarly to the Geoclue provider, the CoreLocation provider only requests the location on startup.
2014-12-15Add Quartz (OSX) gamma adjustment methodJon Lund Steffensen6-1/+250
2014-12-15colorramp: Add float-typed colorramp_fill() equivalentJon Lund Steffensen2-4/+29