ssimunic / Daily-Reddit-Wallpaper

Change your wallpaper to the most upvoted image of the day from /r/wallpapers or any other subreddit on system startup
http://ssimunic.github.io/Daily-Reddit-Wallpaper/
GNU General Public License v3.0
306 stars 50 forks source link

Is it possible to add a parameter to change the wallpaper every x minutes? #3

Closed okon3 closed 8 years ago

okon3 commented 8 years ago

I really like my wallpaper to change while I work. I think this one would be a nice addiction without much effort.

wynro commented 8 years ago

You can do this via cron if you are in Linux

ssimunic commented 8 years ago

Exactly as @wynro said, this can be done using cronjobs.

Note that you can also use --time hour for top hourly images. I think that changing it every minute to newest submission wouldn't be safe, but I'll see which features I can add related to this.

ssimunic commented 8 years ago

I've added --time new for newest subreddit post.

joesanford commented 8 years ago

I can add a PR to keep the script running and make the change every x mins/hours/etc if you wish to re-open this.

ssimunic commented 8 years ago

Sure @joesanford you can add it!

ssimunic commented 8 years ago

Closing this, as its better solution to do this via cron or task scheduler than have the script running whole time.

asgoel commented 8 years ago

do you have an example crontab? keep getting the "Unsupported desktop environment" error when I run on my Ubuntu machine

joesanford commented 8 years ago

@asgoel does the script work if you just run it instead of as a cron job, or does it get the same error?

asgoel commented 8 years ago

Works fine if I run it normally. Think it has to do with the environment that the cron job runs in

On Friday, July 29, 2016, Joe Sanford notifications@github.com wrote:

@asgoel https://github.com/asgoel does the script work if you just run it instead of as a cron job, or does it get the same error?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ssimunic/Daily-Reddit-Wallpaper/issues/3#issuecomment-236156814, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQwFgNOtQLZMqj2cnjTfCqRlfUSZ-Fdks5qaeK_gaJpZM4I-Tol .

joesanford commented 8 years ago

That was my thought exactly.

Instead of having the script detect the environment when running as a cron job, I'd instead explicitly set the environment.