anufrievroman / waypaper

GUI wallpaper manager for Wayland and Xorg Linux systems
https://anufrievroman.gitbook.io/waypaper
GNU General Public License v3.0
385 stars 25 forks source link

Feature: Option to randomize wallpapers every 5 minutes #69

Open chrissolanilla opened 3 months ago

chrissolanilla commented 3 months ago

Hi, I really like the easy of use that waypaper provides. One thing that I usually have when it comes to wall papers is for it to randomly change to a different image after a certain amount of time. Usually I achieve this with a script. When it comes to other operating systems that are not Linux, they support this out of the box sometimes. I would like to propose this idea, and will try to fork my own copy of this repository but with an additional button or option to randomize the wallpaper after some time like 1 minute, 5 minutes, 30 minutes, 1 hour.

anufrievroman commented 3 months ago

Hi, thank you for the suggestion. One issue with that is to do that we need to have a running process, i.e. either the GUI should keep running or we need a daemon that will keep counting the time, which is essentially the same as just a bash script:

while true; do sleep 600; waypaper --random; done

Currently, I am not really convinced that we need to convert waypaper into a daemon-like program just for this one feature. Maybe documentation with example of a script to achieve this would be enough.

chrissolanilla commented 3 months ago

Thank you for telling me a simple way to do the bash script. I was thinking maybe the program could create a bash script for the user, but I understand why you may be adverse to the idea of this feature.

chrissolanilla commented 3 months ago

I have finished my fork of this project and have opened a pull request. The details are in the pull request. It would mean a lot to me if you accepted the pull request, thanks.