aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Update po filesJon Lund Steffensen2014-12-3029-2120/+2291
|
* redshift: Fix untranslated status stringsJon Lund Steffensen2014-12-301-3/+3
|
* Merge branch 'hooks-dir'Jon Lund Steffensen2014-12-286-8/+190
|\
| * redshift.1: Add description of hooks in man pageJon Lund Steffensen2014-12-281-0/+19
| |
| * 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
| |
* | README: Add flattr button at the endJon Lund Steffensen2014-12-281-0/+5
| |
* | redshift.1: Update outdated information in man pageJon Lund Steffensen2014-12-281-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.
* | Merge branch 'translation-updates'Jon Lund Steffensen2014-12-2833-3964/+8820
|\ \
| * | Update po filesJon Lund Steffensen2014-12-2829-3950/+8790
| | |
| * | 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
|/ /
* | corelocation: Fix missing space character in stringJon Lund Steffensen2014-12-281-1/+1
| |
* | systemtime: Add function wrapping platform sleep functionJon Lund Steffensen2014-12-283-8/+17
| | | | | | | | | | Adds systemtime_msleep() which sleeps for a number of milliseconds. This wraps Sleep() on windows and usleep() on other platforms.
* | systemtime: Fix includes and check for _POSIX_TIMERSJon Lund Steffensen2014-12-282-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.
* | contrib: Add appdata file to RPM packageJon Lund Steffensen2014-12-281-0/+1
|/
* redshift: Add enum member for unknown period_t (PERIOD_NONE)Jon Lund Steffensen2014-12-281-2/+5
|
* redshift: Properly handle errors in sigactionJon Lund Steffensen2014-12-281-4/+19
|
* redshift: Fix translation of period namesJon Lund Steffensen2014-12-271-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.
* Merge branch 'less-verbose'Jon Lund Steffensen2014-12-271-11/+85
|\
| * redshift: Only print period information when it changesJon Lund Steffensen2014-12-271-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.
| * redshift: Be less verbose when color values did not changeJon Lund Steffensen2014-12-271-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.
* redshift: Change duration of sleep to macroJon Lund Steffensen2014-12-271-5/+8
|
* Merge branch 'color-settings-struct'Jon Lund Steffensen2014-12-2716-131/+219
|\
| * redshift: Simplify set_temperature by passing color_setting_tJon Lund Steffensen2014-12-2716-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.
| * redshift: Add config setting to set gamma separately for day/nightJon Lund Steffensen2014-12-271-1/+25
| | | | | | | | | | These settings are gamma-day and gamma-night. The setting gamma will still override both the daytime and nighttime gamma setting.
| * redshift: Move color settings into struct for periodJon Lund Steffensen2014-12-272-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.
* redshift: Use double for interpolation functionJon Lund Steffensen2014-12-271-4/+4
|
* redshift-gtk: Split status icon into controller and interfaceJon Lund Steffensen2014-12-211-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.
* redshift-gtk: Add docstrings in statusicon moduleJon Lund Steffensen2014-12-181-2/+46
|
* redshift-gtk: Ignore exception in termwait when child is goneJon Lund Steffensen2014-12-181-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.
* redshift-gtk: Remove unnecessary semi-colons at end-of-lineJon Lund Steffensen2014-12-181-4/+4
|
* redshift-gtk: Show errors from child process in a dialogJon Lund Steffensen2014-12-181-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.
* Merge pull request #140 from jonls/osx-supportJon Lund Steffensen2014-12-1610-5/+582
|\ | | | | OSX support. Adds gamma adjustment method `quartz` and location provider `corelocation`.
| * Add CoreLocation (OSX) location providerJon Lund Steffensen2014-12-156-0/+303
| | | | | | | | | | Similarly to the Geoclue provider, the CoreLocation provider only requests the location on startup.
| * Add Quartz (OSX) gamma adjustment methodJon Lund Steffensen2014-12-156-1/+250
| |
| * colorramp: Add float-typed colorramp_fill() equivalentJon Lund Steffensen2014-12-152-4/+29
|/
* Merge pull request #145 from jonls/appdata-xmlJon Lund Steffensen2014-12-164-2/+41
|\ | | | | Fix #95: Add AppData file for package managers
| * appdata: Add screenshotJon Lund Steffensen2014-12-152-0/+6
| |
| * Fix #95: Add AppData file for package managersJon Lund Steffensen2014-12-153-2/+35
|/
* Merge branch 'geoclue2-provider'Jon Lund Steffensen2014-12-158-4/+377
|\ | | | | | | Add GeoClue2 location provider
| * contrib: Update RPM spec to use GeoClue2Jon Lund Steffensen2014-12-151-2/+2
| |
| * Fix #80: Add Geoclue2 location providerJon Lund Steffensen2014-12-157-2/+375
|/ | | | | | | This simply runs a GLib main loop when the location is requested and tries to get the location from GeoClue2. We need to run a main loop since the location is not immediately available, instead it becomes available through a signal.
* systemtime: Use gettimeofday if POSIX timers not availableJon Lund Steffensen2014-12-152-13/+26
|
* contrib: Do not generate RPM specJon Lund Steffensen2014-12-152-3/+2
| | | | | | The RPM spec needs to be maintained manually anyway so it does not make sense to autogenerate the file with the latest version number. This should be done manually while updating dependencies and changelog.
* Makefile: Add README to distributed filesJon Lund Steffensen2014-12-152-0/+2
| | | | | | README was accidentally omitted from distribution, and the link from README to README.md was missing since the file was renamed with the Markdown extension.