Open Jeinzi opened 1 year ago
I am super glad to see this patch! I can finally get rid of my silly Bash wrapper.
One request: It looks like (I have not tried) this will only work for a flat directory of images. I would like to see it recurse into nested (categorized) directories.
Yes, currently this feature does not recurse into subdirectories. file tree walk could be used to change that.
Currently, when the --image argument receives a directory, swaylock ignores it and falls back to a white background. With the changes in this commit, swaylock will pick a random file from the directory instead and use that.
Hope this can be merged :) Best regards, Julian