Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
用脚本来设置deepin壁纸
Experiences and Insight
1333
views ·
2
replies ·
To
floor
Go
myml
Super Moderator
Developer
2017-04-24 21:24
Author
本帖最后由 myml 于 2017-4-24 14:11 编辑
用
"gsettings set org.gnome.desktop.background picture-uri 图片路径"
Copy the Code
就可以设置壁纸,例如
gsettings set org.gnome.desktop.background picture-uri /home/myml/Pictures/Wallpapers/25b2911980978d87084da708e3f926f5.jpg
Copy the Code
来玩点花的,文件夹随机壁纸
find /home/myml/Pictures/Wallpapers/* |shuf -n1 | gsettings set org.gnome.desktop.background picture-uri $(cat)
Copy the Code
来个高级的,设置必应首页图片为壁纸
curl -s "cn.bing.com" |grep -Po 'g_img={url: "\K[^"]+'|wget cn.bing.com/$(cat) -O /tmp/bk.jpg && gsettings set org.gnome.desktop.background picture-uri /tmp/bk.jpg
Copy the Code
再来个复杂的,从小米壁纸里随机一个动漫壁纸
curl -s "http://service2.adesk.com/img/listcate?cid=4e4d610cdf714d2966000003&limit=100" | grep -Po '"_origin": "\K[^"]+' | shuf -n1 |wget http://img0.adesk.com/download/$(cat) -O /tmp/bk.jpg && gsettings set org.gnome.desktop.background picture-uri /tmp/bk.jpg
Copy the Code
Reply
Like 0
Favorite
View the author
All Replies
wangaicc
deepin
2017-04-24 23:03
#1
赞个
以后用python的写个 每日换屏幕的
Reply
Like 0
View the author
lulinux
deepin
2017-04-24 23:19
#2
github上有一个randombg
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
用
就可以设置壁纸,例如
来玩点花的,文件夹随机壁纸
来个高级的,设置必应首页图片为壁纸
再来个复杂的,从小米壁纸里随机一个动漫壁纸