Commit Graph
451 Commits
Author SHA1 Message Date
Jon Lund Steffensen f7dd7addd8 Fix #153: geoclue2: Set desktop id on GeoClue2 client
This property needs to be set in the latest versions of GeoClue2,
but it is not available in early versions.
2015-01-02 22:42:16 -05:00
Jon Lund Steffensen ae84197292 Update po files 2014-12-30 22:10:36 -05:00
Jon Lund Steffensen 542254705b redshift: Fix untranslated status strings 2014-12-30 22:08:06 -05:00
Jon Lund Steffensen 59023d86f4 Merge branch 'hooks-dir' 2014-12-28 19:26:29 -05:00
Jon Lund Steffensen 24a132bbe8 README: Add flattr button at the end 2014-12-28 19:21:05 -05:00
Jon Lund Steffensen 75ad3de1fe redshift.1: Add description of hooks in man page 2014-12-28 15:20:17 -05:00
Jon Lund Steffensen 268f89088c redshift.1: Update outdated information in man page
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-28 15:19:32 -05:00
Jon Lund Steffensen 956dbdfe7e Merge branch 'translation-updates' 2014-12-28 14:42:08 -05:00
Jon Lund Steffensen 06624adc18 Update po files 2014-12-28 14:41:34 -05:00
Jon Lund Steffensen f154aaa7c1 redshift: Add translation comment on period name None 2014-12-28 14:34:43 -05:00
Jon Lund Steffensen 0b94ec26fe redshift: Add translation of Daytime/Night in new gamma string 2014-12-28 14:34:21 -05:00
Jon Lund Steffensen d281e0c1ed redshift: Add translation comment to N,S,W,E strings 2014-12-28 14:33:11 -05:00
Jon Lund Steffensen 501d308495 location: Make translated string about recheck shared between all providers 2014-12-28 14:14:28 -05:00
Jon Lund Steffensen 7cb1af0773 corelocation: Fix missing space character in string 2014-12-28 14:13:42 -05:00
Jon Lund Steffensen ba422bd78e systemtime: Add function wrapping platform sleep function
Adds systemtime_msleep() which sleeps for a number of milliseconds.
This wraps Sleep() on windows and usleep() on other platforms.
2014-12-28 13:13:21 -05:00
Jon Lund Steffensen 4adf25952f systemtime: Fix includes and check for _POSIX_TIMERS
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-28 13:10:31 -05:00
Jon Lund Steffensen fc9a0cb59d contrib: Add appdata file to RPM package 2014-12-28 01:46:15 -05:00
Jon Lund Steffensen 159754c1cd redshift: Add hooks for user actions on period switch
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-28 01:36:26 -05:00
Jon Lund Steffensen 4a572e85e9 redshift: Move period_t to header 2014-12-28 01:30:35 -05:00
Jon Lund Steffensen d58de55645 redshift: Add enum member for unknown period_t (PERIOD_NONE) 2014-12-28 01:25:10 -05:00
Jon Lund Steffensen 4e7717cf14 redshift: Properly handle errors in sigaction 2014-12-28 01:23:30 -05:00
Jon Lund Steffensen cfe90ccf70 redshift: Fix translation of period names
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-27 23:12:47 -05:00
Jon Lund Steffensen e781575643 Merge branch 'less-verbose' 2014-12-27 21:29:27 -05:00
Jon Lund Steffensen 396ecd69a8 redshift: Only print period information when it changes
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-27 21:27:36 -05:00
Jon Lund Steffensen 431780b851 redshift: Be less verbose when color values did not change
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-27 21:26:37 -05:00
Jon Lund Steffensen 6ecbfe324f redshift: Change duration of sleep to macro 2014-12-27 20:46:59 -05:00
Jon Lund Steffensen 87cec6b366 Merge branch 'color-settings-struct' 2014-12-27 20:35:00 -05:00
Jon Lund Steffensen ec5aa19acf redshift: Simplify set_temperature by passing color_setting_t
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-27 20:22:11 -05:00
Jon Lund Steffensen a4052e2a7b redshift: Add config setting to set gamma separately for day/night
These settings are gamma-day and gamma-night. The setting gamma
will still override both the daytime and nighttime gamma setting.
2014-12-27 19:43:05 -05:00
Jon Lund Steffensen 4ac4d9ee2d redshift: Move color settings into struct for period
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-27 19:43:05 -05:00
Jon Lund Steffensen c00bcff953 redshift: Use double for interpolation function 2014-12-27 19:30:16 -05:00
Jon Lund Steffensen 46fa3566de redshift-gtk: Split status icon into controller and interface
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-21 20:41:59 -05:00
Jon Lund Steffensen fee0a87a54 redshift-gtk: Add docstrings in statusicon module 2014-12-18 22:03:20 -05:00
Jon Lund Steffensen a34f948d53 redshift-gtk: Ignore exception in termwait when child is gone
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-18 21:36:55 -05:00
Jon Lund Steffensen 86e15af8b1 redshift-gtk: Remove unnecessary semi-colons at end-of-line 2014-12-18 21:36:15 -05:00
Jon Lund Steffensen c1524cad84 redshift-gtk: Show errors from child process in a dialog
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-18 21:31:52 -05:00
Jon Lund Steffensen 003025f5a3 Merge pull request #140 from jonls/osx-support
OSX support. Adds gamma adjustment method `quartz` and location provider `corelocation`.
2014-12-16 06:41:22 +01:00
Jon Lund Steffensen 8839dcd530 Add CoreLocation (OSX) location provider
Similarly to the Geoclue provider, the CoreLocation provider only
requests the location on startup.
2014-12-15 20:36:35 -05:00
Jon Lund Steffensen 980a993c98 Add Quartz (OSX) gamma adjustment method 2014-12-15 20:31:51 -05:00
Jon Lund Steffensen b2fb992757 colorramp: Add float-typed colorramp_fill() equivalent 2014-12-15 20:31:03 -05:00
Jon Lund Steffensen 3fdffb2ffc Merge pull request #145 from jonls/appdata-xml
Fix #95: Add AppData file for package managers
2014-12-16 01:20:24 +01:00
Jon Lund Steffensen cd5c59186c appdata: Add screenshot 2014-12-15 03:17:00 -05:00
Jon Lund Steffensen 1975e92bc8 Fix #95: Add AppData file for package managers 2014-12-15 02:40:14 -05:00
Jon Lund Steffensen dc78015f32 Merge branch 'geoclue2-provider'
Add GeoClue2 location provider
2014-12-15 01:53:59 -05:00
Jon Lund Steffensen 8b95878c37 contrib: Update RPM spec to use GeoClue2 2014-12-15 01:47:49 -05:00
Jon Lund Steffensen ee7e91dd86 Fix #80: Add Geoclue2 location provider
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.
2014-12-15 01:47:49 -05:00
Jon Lund Steffensen 0af9072793 systemtime: Use gettimeofday if POSIX timers not available 2014-12-15 01:40:37 -05:00
Jon Lund Steffensen 3fc0c8cdbc contrib: Do not generate RPM spec
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.
2014-12-15 01:38:44 -05:00
Jon Lund Steffensen 795d33aa18 Makefile: Add README to distributed files
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.
2014-12-15 01:37:17 -05:00
Jon Lund Steffensen 9cf553687f Merge pull request #141 from jonls/relay-usr1-signal
redshift-gtk: Relay USR1 signal to redshift process
2014-12-06 21:28:30 -05:00