简体   繁体   English

如何每天自动更改我的桌面背景?

[英]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.

相关问题 如何使用 python 更改我的桌面背景? - How can I change my desktop background with python? 如何在一天中的特定时间在后台运行我的程序? - How can I run my program in the background at certain times of the day? 如何更改我的SQLalchemy查询以包括当前日期? - How can I change my SQLalchemy query to include the current day? 如何在回收视图中更改所选项目的背景颜色。 我也想要它 select 自动成为第一项(白色背景) - How can I change background color of selected item in recycleview. also I want it to select automatically the 1st item(with white background) 我如何让我的django应用自动在heroku的背景中抓取 - how can I make my django app automatically scrape in the background on heroku 如何设置平滑过渡的 Windows 10 桌面背景? - How can I set windows 10 desktop background with smooth transition? 如何将远程服务器上的状态更改通知我的桌面应用程序? - How can my desktop application be notified of a state change on a remote server? 如何自动更改字符串中的字符? - How can I change a character in a string automatically? 我怎样才能改变我的 plot 以便我的主轴每 12 个月而不是每 20 个月? - How can I change my plot so that my major axis is every 12 months rather than every 20 months? 我怎样才能删除每个“ - How can i remove every "<span" from items in my list? what should i change in regex?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM