aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change preserve option to command line switchJon Lund Steffensen2017-10-1310-66/+67
| | | | | | | | | | | | | | | | | Changes each adjustment method to take a preserve parameter when setting the temperature instead of parsing the preserve option from the command line/configuration file. This helps resolve the issues around #513: - This allows the preserve option to be implemented as a command-line switch (-P). This switch _disables_ the preservation of existing gamma ramps. Having a command-line switch makes it easier to use directly with manual or one-shot mode. - The preserve options is on by default, so continual mode as well as other modes will default to applying the color adjustment on top of the current gamma ramps. - Preserve is always disabled in reset mode so resetting works as expected again.
* Merge pull request #535 from jonls/cleanupJon Lund Steffensen2017-10-1324-1276/+1336
|\ | | | | Cleanup redshift.c + modules + options
| * Add function for resetting color_setting_tJon Lund Steffensen2017-10-131-11/+20
| |
| * Move options handling to separate fileJon Lund Steffensen2017-10-136-716/+870
| | | | | | | | | | | | | | Create options.c which contains functions for initializing and parsing options from the command line and the configuration file. Program options that were previously local variables in main() are moved to the options_t struct.
| * Move module structures out of headersJon Lund Steffensen2017-10-1317-161/+109
| |
| * Allocate module data in init functionsJon Lund Steffensen2017-10-1311-121/+138
| |
| * Move module struct definitions to separate filesJon Lund Steffensen2017-10-1319-305/+237
|/
* Merge pull request #536 from jonls/gtk-help-argsJon Lund Steffensen2017-10-131-0/+5
|\ | | | | Add help message to redshift-gtk
| * add help message to redshift-gtkSamuel Walladge2017-10-131-0/+5
|/
* Merge pull request #432 from hanklank/masterJon Lund Steffensen2017-10-131-141/+204
|\ | | | | Updated Swedish translation
| * Updated Swe translation - header changesJosef Andersson2017-02-061-4/+6
| |
| * Updated Swe translationJosef Andersson2017-02-061-138/+199
| |
* | Merge pull request #534 from jonls/fix-quartzJon Lund Steffensen2017-10-121-3/+4
|\ \ | | | | | | quartz: Fix incorrect use of display identifier
| * | quartz: Fix incorrect use of display identifierJon Lund Steffensen2017-10-121-3/+4
|/ / | | | | | | | | | | The quartz (macOS) adjustment method incorrectly used the display index instead of the associated CGDirectDisplayID. Incidentally this happened to work too but was incorrect.
* | Merge pull request #533 from jonls/fix-error-handlingJon Lund Steffensen2017-10-121-1/+1
|\ \ | | | | | | Fix bug where error code was not handled
| * | Fix bug where error code was not handledJon Lund Steffensen2017-10-121-1/+1
|/ /
* | Merge pull request #532 from jonls/fix-time-basedJon Lund Steffensen2017-10-121-12/+17
|\ \ | | | | | | Fix missing checks and verbose output
| * | Fix missing checks and verbose outputJon Lund Steffensen2017-10-121-12/+17
|/ / | | | | | | | | | | | | Rearrange checks and verbose output in main() to bring back checks that were accidentally left out when time-based adjustments were enabled. This includes the output indicating the daytime/night temperatures and the check that the temperatures are valid.
* | Merge pull request #531 from jonls/time-adjustment-docsJon Lund Steffensen2017-10-112-2/+27
|\ \ | | | | | | Add documentation for time-based adjustment
| * | Add dawn-time/dusk-time to sample configJon Lund Steffensen2017-10-111-0/+15
| | |
| * | man: Add documentation for dawn-time/dusk-timeJon Lund Steffensen2017-10-111-2/+12
| | |
* | | Merge pull request #530 from jonls/ci-apparmorJon Lund Steffensen2017-10-111-1/+1
|\ \ \ | |/ / |/| | Travis: Enable AppArmor install
| * | Travis: Enable AppArmor installJon Lund Steffensen2017-10-111-1/+1
|/ /
* | Merge pull request #529 from jonls/time-based-adjustmentJon Lund Steffensen2017-10-113-78/+286
|\ \ | | | | | | Time-based adjustment
| * | Check time-based configuration on CIJon Lund Steffensen2017-10-112-0/+12
| | |
| * | Time-based configurationJon Lund Steffensen2017-10-111-78/+274
| | | | | | | | | | | | | | | | | | | | | | | | Allow setting the time of the dawn and dusk transition periods directly in the configuration file. If these are specified, the location provider is not needed and is therefore not initialized. Based on patch by Martin Nicolay <edelschimmel1@gmx.de>.
* | | Merge pull request #528 from CameronNemo/apparmorJon Lund Steffensen2017-10-114-2/+77
|\ \ \ | |/ / |/| | Add AppArmor profile
| * | Add AppArmor profileCameron Norman2017-10-104-2/+77
|/ /
* | Merge pull request #527 from jonls/fix-osx-buildJon Lund Steffensen2017-10-101-0/+1
|\ \ | | | | | | Travis CI: Run brew update on macOS to fix build failure
| * | Travis CI: Run brew update on macOS to fix build failureJon Lund Steffensen2017-10-101-0/+1
|/ /
* | Merge pull request #524 from dev7355608/w32gdiJon Lund Steffensen2017-10-101-5/+15
|\ \ | | | | | | Fix #523: Retry SetDeviceGammaRamp before giving up
| * | Fix #523: Retry SetDeviceGammaRamp before giving updev73556082017-09-271-5/+15
|/ / | | | | | | | | | | We have to retry SetDeviceGammaRamp a few times before giving up because some buggy drivers fail on the first invocation just to succeed on the second.
* | Merge pull request #511 from jonls/preserve-by-defaultJon Lund Steffensen2017-08-314-4/+4
|\ \ | | | | | | Preserve gamma ramps by default
| * | w32gdi: Enable preserve by defaultJon Lund Steffensen2017-08-311-1/+1
| | |
| * | vidmode: Enable preserve by defaultJon Lund Steffensen2017-08-311-1/+1
| | |
| * | randr: Enable preserve by defaultJon Lund Steffensen2017-08-311-1/+1
| | |
| * | quartz: Enable preserve by defaultJon Lund Steffensen2017-08-311-1/+1
|/ /
* | Merge pull request #510 from jonls/fix-configJon Lund Steffensen2017-08-301-5/+4
|\ \ | | | | | | Fix #509: Set screen 0 in sample config
| * | Fix #509: Set screen 0 in sample configJon Lund Steffensen2017-08-301-5/+4
|/ /
* | Merge pull request #508 from jonls/improve-fadeJon Lund Steffensen2017-08-301-117/+164
|\ \ | | | | | | redshift: Improve fade implementation
| * | redshift: Improve fade implementationJon Lund Steffensen2017-08-301-117/+164
|/ / | | | | | | | | | | | | | | | | | | Simplify implementation of fades in continual mode. A fade is now applied anytime the change in color temperature, brightness or gamma is greater than a preset threshold. This means that a fade is applied if the location provider suddenly updates to a new location or if the currently time suddenly jumps e.g. after waking up the computer from sleep. An easing function is applied to the fade to make it more pleasant.
* | Merge pull request #507 from jonls/fade-termJon Lund Steffensen2017-08-303-27/+27
|\ \ | | | | | | Use the term "fade" instead of "transition" for the short (~5s) fade between color temperatures
| * | Update man pageJon Lund Steffensen2017-08-301-3/+4
| | |
| * | Update sample config fileJon Lund Steffensen2017-08-301-4/+4
| | |
| * | Change term transition to fadeJon Lund Steffensen2017-08-301-20/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use the term "fade" instead of "transition" for the short (~5s) fade between color temperatures. The term "transition" is now only used for the transition phase between daytime and night. The setting "transition" in the configuration file is now deprecated and "fade" should be used instead.
* | | Merge pull request #504 from jonls/geoclue-updateJon Lund Steffensen2017-08-302-7/+43
|\ \ \ | |/ / |/| | GeoClue: better error message when access is denied
| * | README: Add FAQ entry on GeoClue access deniedJon Lund Steffensen2017-08-191-1/+15
| | |
| * | geoclue2: Show explanation of access denied errorJon Lund Steffensen2017-08-191-0/+22
| | |
| * | geoclue2: Use existing connection objectJon Lund Steffensen2017-08-191-6/+6
|/ / | | | | | | Use existing connection object when creating proxies.
* | Merge pull request #500 from jonls/continuous-locationJon Lund Steffensen2017-08-1914-283/+843
|\ \ | | | | | | Continuous location updates