aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-16Major refactoring and some fixesMattias Andrée1-558/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-08styleMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-08minor misc improvementsMattias Andrée1-95/+76
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-08Fix warningsMattias Andrée1-1/+3
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-08miscMattias Andrée1-13/+15
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-08Use eprintf rather than deferring exitMattias Andrée1-51/+25
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-08Misc improvementsMattias Andrée1-38/+34
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-07Use libred to calculate the solar elevationMattias Andrée1-1/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-07Misc improvementsMattias Andrée1-17/+17
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-06Update redshift to redshift-ngMattias Andrée1-4/+4
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-06style and some minor fixesMattias Andrée1-179/+125
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-06StyleMattias Andrée1-41/+32
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Fix warningsMattias Andrée1-6/+5
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Style and warningsMattias Andrée1-12/+20
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Just use double, no mixing in floatMattias Andrée1-3/+3
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Merge config-ini.h and options.h into common.hMattias Andrée1-2/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Cleanup and style update (avoid typedef)Mattias Andrée1-45/+27
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Merge redshift.h into common.hMattias Andrée1-1/+1
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ée1-3/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
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.
2017-10-19options: Split parse functionsJon Lund Steffensen1-276/+277
2017-10-13Change preserve option to command line switchJon Lund Steffensen1-1/+7
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-13Move options handling to separate fileJon Lund Steffensen1-0/+672
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.