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

Adding the possibility of having random background images #83

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

Conversation

wiltonloch
Copy link

The functionality uses the same configuration parameter "background-image" as currently employed for single images. If the parameter ends with a "/" it is assumed that the path is a folder and not a file. If this is the case, the files inside of the folder are searched and all matches with an image extension are saved. Once all folder images have been found, one is randomly selected and assigned to the "config->background_image" variable, which is then later used to load the image as usual.

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.

None yet

1 participant