Closed tien-vo closed 11 months ago
Interesting! I didn't know you have this feature in Nitrogen. Could you describe a bit more how it works? Instead of a local folder, you input a URL and the program downloads images from there into a temporary folder?
Although I see many problems with NASA thing specifically, I like it as an ides. How I see it might work, it could be a button or a field where you input the URL, and it would load things from that URL, and display them as a virtual folder. And the upon the Refresh
button it would update that virtual folder and upon Random
it would choose a random image. I am not sure about the regular automatic updates, because I don't think anyone would run it continuously.
But for NASA basically, you need api key for that, right? And this works only for this particular NASA website, and there aren't many other such sources? Another problem is that most pictures there are not really wallpaper like, and sometimes it's a video.
Oops it seem I've made a mistake! I just looked at what I was using in my old computer before moving to a full wayland setup and the application is Variety, not Nitrogen. Variety seems to work well in wayland with swaybg, so it seems I wrote that script for nothing :)
Regardless, the behavior I like from Variety is that it has a few locations to pick wallpapers from (e.g. favorites folder, /usr/share/backgrounds, or web APIs like APOD). Users can tell the application to change wallpaper every x minutes. If the location is an API (besides APOD, Variety works with flickr, bing, earthview, natgeo, unsplash), it pulls image down to a "fetched" folder and displays it. If the user likes the image, they can move it into a "favorites" folder to be re-chosen later.
Since Variety is already working for me, feel free to close this if you don't wish to implement this feature!
P/s: Yes you'll need an API key but NASA gives it out for free. And if the request returns a video, you can just make another one until you find a new image I guess. Some people might not want the changing wallpaper but I personally like to have it change every hour on the second monitor when I work to keep track of time :) Plus random pretty space photos are refreshing haha.
Ah, that's an interesting project, I didn't know about Variety. Well, yes, the work seems to be already done very well there, I guess if you wish to visually select a wallpaper from that library, you could just point waypaper to variety folder. It's actually pretty cool, maybe I'll add an option to include Variety folder by default. Let's close this issue.
One of the features I sorely miss from Nitrogen is the ability to pull wallpapers from APIs like NASA APOD. I'm currently implementing it with swww through this short python script, which can download, display, and delete wallpapers at custom intervals. I thought this project might be interested in incorporating this feature, since it's also written in Python. I'm happy to submit a PR. Let me know how you want it done.