BingWallpaper-xfce4
#!/bin/bash | |
#by youthlin.chen https://youthlin.com | |
dir=`pwd` | |
file=`curl -I "https://cn.bing.com/ImageResolution.aspx?w=1920&h=1080" 2>/dev/null | grep Location | awk '{print $2}'` | |
file=${file%_*} | |
file="${file}_1920x1080.jpg" | |
url="https://cn.bing.com$file" | |
file=${file##*/} | |
today=`date +%Y%m%d` | |
file="${today}_${file}" | |
curl $url >$file 2>/dev/null | |
/usr/bin/xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitor0/workspace0/last-image -s $dir/$file | |
/usr/bin/xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitor1/workspace0/last-image -s $dir/$file | |
notify-send -i $dir/bing-logo.png '壁纸已设置' $dir/$file | |
#bing-logo.png: http://pluspng.com/img-png/logo-bing-png-bing-icon-1600.png |
This comment has been minimized.
This comment has been minimized.
bing-kde.sh
部件被锁定时不能更改!! https://github.com/pashazz/ksetwallpaper/blob/master/ksetwallpaper.py |
This comment has been minimized.
This comment has been minimized.
KDE 其实还可以 在桌面右键-配置桌面-壁纸-壁纸类型-每日一图-Bing |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
save as
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Reference: https://github.com/marguerite/linux-bing-wallpaper/blob/master/bing-wallpaper.go