Set wallpaper from Google drive folder

1,109 views
Skip to first unread message

Sam Henderson

unread,
Jun 14, 2016, 6:55:31 PM6/14/16
to Tasker
Hi there,

How would I go about creating up a profile to change my wallpaper periodically from a set images in a google drive folder? Ideally, there wouldn't have to be any kind of file naming convention for the images stored on google drive. I have attached my current profile which works well but it is an arduous task when I want to add new images as I need to rename the new images and then open tasker and adjust the range of filenames it looks for.

Thanks in advance for the pointers.


Screen_Saver.prf.xml

Rich Belthoff

unread,
Jun 15, 2016, 12:09:57 PM6/15/16
to Tasker
This is what I use. I just out image files into the folder. You'll need to enter your folder name, of course. I think I found this task on this forum, but not sure.

Profile: Wallpaper Changer (303)
Restore: no Enforce: no
Event: Display Off
Enter: Wallpaper Switch (302)
A1: Variable Set [ Name:%randoimagefolder To:DCIM/DS_Images Do Maths:Off Append:Off ]
A2: JavaScriptlet [ Code:var i =listFiles(randoimagefolder, false).split("\n");

var number = Math.floor( Math.random()*(i.length));

setWallpaper(i[number]); Libraries: Auto Exit:On Timeout (Seconds):5 ]

Reply all
Reply to author
Forward
0 new messages