xyproto / wallutils

:city_sunset: Utilities for handling monitors, resolutions, wallpapers and timed wallpapers
BSD 3-Clause "New" or "Revised" License
467 stars 17 forks source link

Is there a way to create a new collection? #5

Closed dpgeekzero closed 5 years ago

dpgeekzero commented 5 years ago

Perhaps I'm missing it, but I don't see how to create my own collections.

xyproto commented 5 years ago

Thanks for reporting. I should document this.

One way is to create a directory with filenames on the form name_1900x1200.jpg, where the name usually is the same as the collection and the resolutions may vary.

xyproto commented 5 years ago

I added a short section about wallpaper collections in README.md.

ghost commented 5 years ago

@xyproto I'm not sure if this is intentional but is the wallpaper collection creation limited to /usr/share/wallpapers and /usr/share/backgrounds? Moreover, do I need to rename all of my wallpaper files and add their resolution in the filename?

Ideally, I should be able to just point out a user owned directory to setcollection and it should search for wallpapers inside that directory recursively and then setcollection mywalls inside .config/sway/config should pick a random wallpaper from that collection.

xyproto commented 5 years ago

Yes, currently it's limited to /usr/share/wallpapers and /usr/share/backgrounds. I agree that I should make this more configurable (pull requests are welcome if I'm not fast enough at fixing this :) ).

For setting a random wallpaper from a directory of images, the setrandom utility can be used.