-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature to adjust fade duration (with Elektra) #1
base: improve-config/elektrify
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR!
src/elektra/redshift.ni
Outdated
@@ -94,6 +94,14 @@ opt = f | |||
opt/long = fade-fast | |||
opt/arg = none | |||
|
|||
[fade/duration] | |||
type = unsigned_long | |||
description = Set fade duration (for fading between color temperatures) in full seconds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description = Set fade duration (for fading between color temperatures) in full seconds. | |
description = Set length of the fade duration in full seconds for fading between color temperatures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is easier to understand, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -398,6 +400,7 @@ options_init(options_t *options) | |||
options->provider = NULL; | |||
|
|||
options->use_fade = -1; | |||
options->fade_duration = -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed. I also adjusted CLion IDE to better detect existing indents in files.
src/options.h
Outdated
@@ -34,6 +34,8 @@ typedef struct { | |||
int temp_set; | |||
/* Whether to fade between large skips in color temperature. */ | |||
int use_fade; | |||
/* The length of the fade duration in seconds */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably link to the spec "fade/duration" and not repeat the description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks for the hint!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
# Conflicts: # src/options.c
@markus2330: This PR implements a new configuration value "fade duration" in redshift with Elektra.
It will be used to compare the implementation of new configuration values without vs. with Elektra.