[英]How can I automatically change my desktop background every day?
I am interested in having my desktop background automatically change every day.我有兴趣让我的桌面背景每天自动更改。 Perhaps taking the "picture of the day" from some website.
也许从某个网站上拍摄“当天的照片”。
Is this something I could do with a Python script?这是我可以用 Python 脚本做的事情吗? I can code pretty well but I only really do numerical work, so I'm just looking for an overview of the process and then I can figure out the details.
我可以很好地编码,但我只做数值工作,所以我只是在寻找过程的概述,然后我可以弄清楚细节。
I imagine it's fairly simple to have my script visit the website I'm interested in and to download the image.我想让我的脚本访问我感兴趣的网站并下载图像相当简单。 But then how do I engage with my (Linux) OS to tell it to set the image as background?
但是然后我如何与我的(Linux)操作系统互动以告诉它将图像设置为背景?
Thanks.谢谢。
But then how do I engage with my (Linux) OS to tell it to set the image as background?但是然后我如何与我的(Linux)操作系统互动以告诉它将图像设置为背景?
This might depend on what exactly system are using, but after quick search I found danilodellaquila.com article about doing that in Ubuntu .这可能取决于系统正在使用什么,但经过快速搜索后,我发现了danilodellaquila.com 文章 Ubuntu 中关于这样做的文章。 Check if any of two following commands do work after replacing path to some jpg image existing in your machine
在替换机器中存在的某些 jpg 图像的路径后,检查以下两个命令中的任何一个是否有效
gsettings set org.gnome.desktop.background picture-uri "file:///path/to/wallpaper.jpg"
or或者
gconftool-2 --type=string --set /desktop/gnome/background/picture_filename /path/to/wallpaper.jpg
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.