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

[Bugfix, Feature] Not emitting empty color #516

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dderjoel
Copy link

This commit prevents an empty color to be emitted on the 3rd line.
With this, if the specified default color -C "" is empty, the script will not emit anything on the third line of the output. Hence, i3blocks will use the default color that is specified in the i3blocks settings.

The benefit of this is, that One does not need to specify the color in the i3blocks settings, but can use the settings from the i3config, which get passed to i3blocks.
This is useful for me because I switch between light and dark themes during the day, and use different i3configs for that. Now just setting -C "" will use whatever color is set for the time of the day.

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.

1 participant