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

How to read in images from file? #186

Open
wreckedred opened this issue Sep 20, 2024 · 5 comments
Open

How to read in images from file? #186

wreckedred opened this issue Sep 20, 2024 · 5 comments
Assignees
Labels

Comments

@wreckedred
Copy link

Thank you your software.

I have a list of absolute paths to images in a file - how would I read them in to swayimg?

Something like...

swayimg --from-file=myimages.txt

@artemsen artemsen self-assigned this Sep 21, 2024
@artemsen
Copy link
Owner

I will add this feature, but for now you can use the following workaround:

xargs -a filelist.txt swayimg -c list.all=no

@wreckedred
Copy link
Author

Thank you - would be a nice addition.

@diniamo
Copy link
Contributor

diniamo commented Oct 7, 2024

I don't believe this should be added, this is exactly why we have shell scripting. In fish you can even do this without xargs:

swayimg (cat list.txt)

@artemsen
Copy link
Owner

artemsen commented Oct 7, 2024 via email

@diniamo
Copy link
Contributor

diniamo commented Oct 8, 2024

It will, since fish does expansion properly. I did test it before sending that as well.

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

No branches or pull requests

3 participants