aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-05Mention after fork that SIGCHLD is ignoredMattias Andrée1-0/+1
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Style and warningsMattias Andrée10-215/+285
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Just use double, no mixing in floatMattias Andrée6-37/+32
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Consistently use (locally defined) WINDOWS macro over mixing __WIN32__ and _WIN32Mattias Andrée5-12/+12
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Merge config-ini.h and options.h into common.hMattias Andrée7-116/+61
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05cleanup + cast + use pipe2 on linuxMattias Andrée4-46/+52
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Nicer X macrosMattias Andrée3-16/+15
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Cleanup and style update (avoid typedef)Mattias Andrée24-718/+450
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Merge redshift.h into common.hMattias Andrée6-162/+131
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Remove old #includeMattias Andrée1-2/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Move redshift-gtk/ to rootMattias Andrée7-812/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Unify header files (so far most)Mattias Andrée28-516/+138
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Use colour temperature table from libredMattias Andrée3-276/+13
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Resolve redshift/issues/223: redshift-gtk: fix title of window to RedshiftMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Update my e-mail addressMattias Andrée4-4/+4
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05config.mk: make pkg-config replacable and list all pkg-config covered libraries in on macroMattias Andrée1-2/+8
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-04add definitions needed to enable operationMattias Andrée1-1/+2
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-04Cleanup, fix/update sv.po, begin use of plain make and renaming project to redshift-ngMattias Andrée4-108/+66
Signed-off-by: Mattias Andrée <m@maandree.se>
2021-06-23Add signal exit handler for SIGQUITWebkadiz1-0/+6
2020-12-11src/redshift.c: Fix typo in error messagenicoo1-1/+1
2020-06-13src/redshift.c: Use localtime_s() on WindowsMasanori Kakura1-0/+5
AppVeyor's GCC no longer supports localtime_r(). We need to use localtime_s() on Windows.
2019-10-02src/redshift.c: Use localtime_s() on WindowsMasanori Kakura1-0/+5
AppVeyor's GCC no longer supports localtime_r(). We need to use localtime_s() on Windows.
2019-04-29Add preserve-gamma configuration optionMatúš Honěk1-0/+4
To be able to convey the same information the '-P' command line option currently does, but using configuration file.
2019-03-03Fix #386: added more suspend durations as requestedhubvu1-1/+3
2018-10-20Fixes #578: Allow hash as comment characterJon Lund Steffensen1-2/+2
2018-10-02Status icon: Prefer symbolic icons when availableClement Lefebvre1-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.
2018-08-29Fix "Some translated strings are still in English" issueMasanori Kakura8-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.
2018-05-20Fix issue where quartz did not mark as unavailableJon Lund Steffensen1-1/+16
2018-05-04config-ini: Properly respect XDG_CONFIG_HOME base directory specificationMasanori Kakura1-5/+29
If redshift.conf is not found, fall back to formerly used path.
2017-10-30Fix #335: Set period to none when disabledMatt Stobo1-0/+1
This allows for hooks to be run when redshift is disabled
2017-10-19options: Split parse functionsJon Lund Steffensen1-276/+277
2017-10-13Change preserve option to command line switchJon Lund Steffensen10-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.
2017-10-13Add function for resetting color_setting_tJon Lund Steffensen1-11/+20
2017-10-13Move options handling to separate fileJon Lund Steffensen5-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.
2017-10-13Move module structures out of headersJon Lund Steffensen17-161/+109
2017-10-13Allocate module data in init functionsJon Lund Steffensen11-121/+138
2017-10-13Move module struct definitions to separate filesJon Lund Steffensen19-305/+237
2017-10-13add help message to redshift-gtkSamuel Walladge1-0/+5
2017-10-12quartz: Fix incorrect use of display identifierJon Lund Steffensen1-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.
2017-10-12Fix bug where error code was not handledJon Lund Steffensen1-1/+1
2017-10-12Fix missing checks and verbose outputJon Lund Steffensen1-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.
2017-10-11Time-based configurationJon Lund Steffensen1-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>.
2017-09-27Fix #523: Retry SetDeviceGammaRamp before giving updev73556081-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.
2017-08-31w32gdi: Enable preserve by defaultJon Lund Steffensen1-1/+1
2017-08-31vidmode: Enable preserve by defaultJon Lund Steffensen1-1/+1
2017-08-31randr: Enable preserve by defaultJon Lund Steffensen1-1/+1
2017-08-31quartz: Enable preserve by defaultJon Lund Steffensen1-1/+1
2017-08-30redshift: Improve fade implementationJon Lund Steffensen1-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.
2017-08-30Change term transition to fadeJon Lund Steffensen1-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.
2017-08-19geoclue2: Show explanation of access denied errorJon Lund Steffensen1-0/+22