Skip to content
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

Open
wants to merge 7 commits into
base: improve-config/elektrify
Choose a base branch
from

Conversation

qwepoizt
Copy link
Owner

@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.

Copy link

@markus2330 markus2330 left a 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!

@@ -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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Owner Author

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!

Copy link
Owner Author

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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

Copy link
Owner Author

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 */

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?

Copy link
Owner Author

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!

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants