Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix #153: geoclue2: Set desktop id on GeoClue2 client | Jon Lund Steffensen | 2015-01-02 | 1 | -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 strings | Jon Lund Steffensen | 2014-12-30 | 1 | -3/+3 | |
| | ||||||
* | Merge branch 'hooks-dir' | Jon Lund Steffensen | 2014-12-28 | 5 | -8/+171 | |
|\ | ||||||
| * | redshift: Add hooks for user actions on period switch | Jon Lund Steffensen | 2014-12-28 | 4 | -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 header | Jon Lund Steffensen | 2014-12-28 | 2 | -8/+9 | |
| | | ||||||
* | | redshift: Add translation comment on period name None | Jon Lund Steffensen | 2014-12-28 | 1 | -0/+1 | |
| | | ||||||
* | | redshift: Add translation of Daytime/Night in new gamma string | Jon Lund Steffensen | 2014-12-28 | 1 | -2/+4 | |
| | | ||||||
* | | redshift: Add translation comment to N,S,W,E strings | Jon Lund Steffensen | 2014-12-28 | 1 | -3/+16 | |
| | | ||||||
* | | location: Make translated string about recheck shared between all providers | Jon Lund Steffensen | 2014-12-28 | 3 | -9/+9 | |
| | | ||||||
* | | corelocation: Fix missing space character in string | Jon Lund Steffensen | 2014-12-28 | 1 | -1/+1 | |
| | | ||||||
* | | systemtime: Add function wrapping platform sleep function | Jon Lund Steffensen | 2014-12-28 | 3 | -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_TIMERS | Jon Lund Steffensen | 2014-12-28 | 2 | -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. | |||||
* | redshift: Add enum member for unknown period_t (PERIOD_NONE) | Jon Lund Steffensen | 2014-12-28 | 1 | -2/+5 | |
| | ||||||
* | redshift: Properly handle errors in sigaction | Jon Lund Steffensen | 2014-12-28 | 1 | -4/+19 | |
| | ||||||
* | redshift: Fix translation of period names | Jon Lund Steffensen | 2014-12-27 | 1 | -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. | |||||
* | redshift: Only print period information when it changes | Jon Lund Steffensen | 2014-12-27 | 1 | -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 change | Jon Lund Steffensen | 2014-12-27 | 1 | -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 macro | Jon Lund Steffensen | 2014-12-27 | 1 | -5/+8 | |
| | ||||||
* | redshift: Simplify set_temperature by passing color_setting_t | Jon Lund Steffensen | 2014-12-27 | 16 | -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/night | Jon Lund Steffensen | 2014-12-27 | 1 | -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 period | Jon Lund Steffensen | 2014-12-27 | 2 | -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 function | Jon Lund Steffensen | 2014-12-27 | 1 | -4/+4 | |
| | ||||||
* | redshift-gtk: Split status icon into controller and interface | Jon Lund Steffensen | 2014-12-21 | 1 | -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 module | Jon Lund Steffensen | 2014-12-18 | 1 | -2/+46 | |
| | ||||||
* | redshift-gtk: Ignore exception in termwait when child is gone | Jon Lund Steffensen | 2014-12-18 | 1 | -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-line | Jon Lund Steffensen | 2014-12-18 | 1 | -4/+4 | |
| | ||||||
* | redshift-gtk: Show errors from child process in a dialog | Jon Lund Steffensen | 2014-12-18 | 1 | -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. | |||||
* | Add CoreLocation (OSX) location provider | Jon Lund Steffensen | 2014-12-15 | 4 | -0/+234 | |
| | | | | | Similarly to the Geoclue provider, the CoreLocation provider only requests the location on startup. | |||||
* | Add Quartz (OSX) gamma adjustment method | Jon Lund Steffensen | 2014-12-15 | 4 | -0/+217 | |
| | ||||||
* | colorramp: Add float-typed colorramp_fill() equivalent | Jon Lund Steffensen | 2014-12-15 | 2 | -4/+29 | |
| | ||||||
* | Fix #80: Add Geoclue2 location provider | Jon Lund Steffensen | 2014-12-15 | 4 | -1/+346 | |
| | | | | | | | 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 available | Jon Lund Steffensen | 2014-12-15 | 1 | -12/+25 | |
| | ||||||
* | redshift-gtk: Relay USR1 signal to redshift process | Jon Lund Steffensen | 2014-12-06 | 1 | -1/+8 | |
| | | | | This also adds SIGINT to the signals handled by redshift-gtk. | |||||
* | redshift-gtk: Forward errors from child to stderr | Jon Lund Steffensen | 2014-11-04 | 1 | -2/+13 | |
| | | | | | | | | | This requires that the stderr (and stdout) are emptied when the child process exits, otherwise redshift-gtk will exit before the error output is forwarded. Also, the '-v' parameter is moved to the beginning of the command line to avoid error output including this (e.g. `redshift-gtk -l` would complain about the missing location provided `-v`). | |||||
* | Fix #112: Do not buffer lines from child indefinitely | Jon Lund Steffensen | 2014-11-03 | 1 | -2/+3 | |
| | ||||||
* | Fix #105: Limit decimals in displayed location to two | Jon Lund Steffensen | 2014-08-16 | 1 | -1/+1 | |
| | ||||||
* | Fix #90: Print N/S and E/W in the location | Mattias Andrée | 2014-08-16 | 2 | -3/+5 | |
| | ||||||
* | Check for strdup failure in location-geoclue | Mattias Andrée | 2014-05-13 | 1 | -0/+8 | |
| | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com> | |||||
* | redshift-gtk: Notify desktop about startup completion | Jon Lund Steffensen | 2014-05-08 | 1 | -1/+4 | |
| | ||||||
* | Add support for custom transition start and end elevation | Mattias Andrée | 2014-05-07 | 1 | -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> | |||||
* | Fix #41: Do not jump to 0 % or 100 % when changing direction of transition | Mattias Andrée | 2014-05-07 | 1 | -55/+26 | |
| | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com> | |||||
* | Fix line splitting logic. | Maks Verver | 2014-04-19 | 1 | -3/+4 | |
| | ||||||
* | Fix #64: Fix Geoclue support when run outside of X | Jon Lund Steffensen | 2014-04-13 | 1 | -6/+18 | |
|\ | | | | | | | | | Fix check of error value returned. Geoclue requires DISPLAY to be set, so try DISPLAY=:0 if not already set. | |||||
| * | Try to use DISPLAY=:0 if not in X | Mattias Andrée | 2014-04-11 | 1 | -0/+4 | |
| | | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com> | |||||
| * | Do not segfault just because an error has not been given | Mattias Andrée | 2014-04-11 | 1 | -6/+14 | |
| | | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com> | |||||
* | | Fix #66: Do not distribute redshift-gtk, only redshift-gtk.in | Jon Lund Steffensen | 2014-04-13 | 1 | -1/+1 | |
| | | ||||||
* | | Fix #67: Geoclue should pull in Glib as dependency | Jon Lund Steffensen | 2014-04-13 | 1 | -1/+4 | |
| | | | | | | | | | | Add checks in configure.ac for Glib and pull in through Makefile.am when Geoclue support is enabled. | |||||
* | | redshift-gtk: Fix crash when toggling state using the status icon | Jon Lund Steffensen | 2014-04-11 | 1 | -1/+5 | |
|/ | ||||||
* | Fix #22: remove initial underscore from include guards | Jon Lund Steffensen | 2014-03-23 | 12 | -36/+36 | |
| | ||||||
* | [redshift-gtk] Add BSD support to proc title setting | Philipp Hagemeister | 2014-03-23 | 1 | -9/+20 | |
| |