swaywm / swaybg

Wallpaper tool for Wayland compositors
MIT License
510 stars 32 forks source link

enhacement: pick random image #11

Closed raspher closed 4 years ago

raspher commented 4 years ago

I know there are workarounds for achieve this result (getting random image from a list), but it can be easily included in this project without much code.

-r -> pick a random wallpaper from list of files

emersion commented 4 years ago

I'd rather not add this feature: it can easily be scripted.

hhirtz commented 4 years ago

Hey @SzymonScholz , I wrote a simple C program for this exact purpose. It has support for feh (master branch) and swaybg (separate branch).

Here's a link: https://github.com/hhirtz/randomfeh/tree/swaybg

fosskers commented 3 years ago

it can easily be scripted.

Similarly, for those for whom that is not easily scripted, I just patched setwall to support Sway.