aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add signal exit handler for SIGQUITWebkadiz2021-06-231-0/+6
| | |
* | | Merge branch 'add-preserve-gamma-config-option' of https://github.com/kenoh/redshiftMattias Andrée2025-03-051-0/+4
|\ \ \
| * | | Add preserve-gamma configuration optionMatúš Honěk2019-04-291-0/+4
| | | | | | | | | | | | | | | | | | | | To be able to convey the same information the '-P' command line option currently does, but using configuration file.
* | | | Merge branch 'coopgamma' of https://github.com/maandree/redshiftMattias Andrée2025-03-0514-66/+671
|\ \ \ \
| * | | | Add coopgamma backendMattias Andrée2016-12-1919-81/+697
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* | | | | Update my e-mail addressMattias Andrée2025-03-054-4/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* | | | | config.mk: make pkg-config replacable and list all pkg-config covered libraries in on macroMattias Andrée2025-03-051-2/+8
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* | | | | Merge branch 'typo'Mattias Andrée2025-03-041-1/+1
|\ \ \ \ \
| * | | | | src/redshift.c: Fix typo in error messagenicoo2020-12-111-1/+1
| | |_|/ / | |/| | |
* | | | | add definitions needed to enable operationMattias Andrée2025-03-041-1/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* | | | | Cleanup, fix/update sv.po, begin use of plain make and renaming project to redshift-ngMattias Andrée2025-03-044-108/+66
|/ / / / | | | | | | | | | | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* | / / src/redshift.c: Use localtime_s() on WindowsMasanori Kakura2020-06-131-0/+5
| |/ / |/| | | | | | | | | | | AppVeyor's GCC no longer supports localtime_r(). We need to use localtime_s() on Windows.
* | | Fix #386: added more suspend durations as requestedhubvu2019-03-031-1/+3
| | |
* | | Fixes #578: Allow hash as comment characterJon Lund Steffensen2018-10-201-2/+2
| | |
* | | Merge pull request #673 from clefebvre/symbolic-status-iconsJon Lund Steffensen2018-10-201-10/+21
|\ \ \ | | | | | | | | Status icon: Prefer symbolic icons when available
| * | | Status icon: Prefer symbolic icons when availableClement Lefebvre2018-10-021-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use 'redshift-status-on-symbolic' and 'redshift-statys-off-symbolic' if available. If these icons are not present in the icon theme, fallback to 'redshift-status-on' and 'redshift-status-off'. Symbolic icons are the only way for themes to properly support both light and dark panels with grey icons. If the icon name ends with -symbolic, GTK renders the foreground color of the icon based on the color of the panel behind it.
* | | | Fix "Some translated strings are still in English" issueMasanori Kakura2018-08-298-0/+31
|/ / / | | | | | | | | | | | | | | | ENABLE_NLS is always undefined in some files and some translatable messages in these files are always displayed in English. This commit fixes the issue.
* | | Fix issue where quartz did not mark as unavailableJon Lund Steffensen2018-05-201-1/+16
| | |
* | | config-ini: Properly respect XDG_CONFIG_HOME base directory specificationMasanori Kakura2018-05-041-5/+29
| | | | | | | | | | | | If redshift.conf is not found, fall back to formerly used path.
* | | Fix #335: Set period to none when disabledMatt Stobo2017-10-301-0/+1
| | | | | | | | | | | | This allows for hooks to be run when redshift is disabled
* | | options: Split parse functionsJon Lund Steffensen2017-10-191-276/+277
| | |
* | | 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.
* | | Add function for resetting color_setting_tJon Lund Steffensen2017-10-131-11/+20
| | |
* | | Move options handling to separate fileJon Lund Steffensen2017-10-135-715/+869
| | | | | | | | | | | | | | | | | | | | | 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
| | |
* | | add help message to redshift-gtkSamuel Walladge2017-10-131-0/+5
| | |
* | | 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.
* | | Fix bug where error code was not handledJon Lund Steffensen2017-10-121-1/+1
| | |
* | | 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.
* | | 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>.
* | | 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.
* | | 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
| | |
* | | 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-301-20/+19
|\ \ \ | | | | | | | | Use the term "fade" instead of "transition" for the short (~5s) fade between color temperatures
| * | | 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.
* | | | 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.
* | | geoclue2: Update continuouslyJon Lund Steffensen2017-08-173-100/+209
| | |
* | | corelocation: Update continuouslyJon Lund Steffensen2017-08-173-61/+172
| | |
* | | pipeutils: Add utils for pipe signalsJon Lund Steffensen2017-08-173-0/+127
| | | | | | | | | | | | | | | | | | | | | Add pipeutils.c with utility functions for working with pipes as signals across threads. Using pipes for signals makes it easy for the main thread to wait on (multiple) file descriptors with or without a timeout.
* | | Change location providers to allow updatesJon Lund Steffensen2017-08-178-182/+382
| | | | | | | | | | | | | | | | | | | | | Change location provider implementations so it is possible for location providers to dynamically update the location. This commit adds the interfaces and infrastructure in redshift.c but none of the location provides are changed to become dynamic.
* | | Remove deprecated geoclue 1 location providerJon Lund Steffensen2017-08-164-301/+7
| | |
* | | Fix #492: Correctly import xdg modulesJon Lund Steffensen2017-08-071-9/+11
| | | | | | | | | | | | | | | | | | Although not named like modules, the BaseDirectory and DesktopEntry are really submodules of xdg that need to be imported for them to be available.
* | | Merge pull request #490 from jonls/windows-resourcesJon Lund Steffensen2017-08-014-2/+34
|\ \ \ | | | | | | | | Add icon for Windows build
| * | | Add Windows resourcesJon Lund Steffensen2017-07-304-2/+34
| | | |