Download the daily Bing wallpaper
$ bingdaily [OPTION]...This script downloads the current daily wallpaper offered by Bing.
-
-ppathChange the download folder. The default download folder is set to the current working directory.
-
-mmarketSelect the Bing market:
en-USzh-CNja-JPen-AUen-UKde-DE(default)en-NZen-CA
-
-ddaySelect the day of the Bing wallpaper:
0= today (default)1= yesterday2= etc.
-
-rresolutionSelect the desired image resolution in pixels:
UHD(default)1920x12801920x10801366x7681280x7201024x768800x600
-
-ssizeSet the font size of the wallpaper title added as annotation to the bottom of the wallpaper. The default is
0to not include any description. This feature requires ImageMagick version 6.3.2 or later. The valuesizecan be set to one of the following:- Positive values larger than
1are interpreted as absolute integers in pixels. - Positive values smaller than
1are applied as scaling factor to the image height of the Bing wallpaper. - Positive values with a trailing percentage sign are applied to the image height of the Bing wallpaper.
- Positive values larger than
-
-yOverwrite existing image files
-
-hShow this help message
0All operations successful1Invalid configuration2Failed to fetch meta information of Bing wallpaper3Failed to replace existing Bing wallpaper4Failed to download Bing wallpaper
In order to invoke the script after user login, create the file ~/.config/autostart/bingdaily.desktop with the following contents.
[Desktop Entry]
Type=Application
Name=Daily Bing Wallpaper
Exec=sh -c "bingdaily -y"
Icon=wallpaper
Comment=Download Bing daily wallpaper
X-GNOME-Autostart-enabled=true
Make sure that bingdaily can be found using the PATH variable.
Refer to the bash script backslide to change the current desktop wallpaper after having downloaded the daily Bing wallpaper.
Clone the remote repository and change into the local repository:
$ git clone https://github.com/mboljen/bingdaily
$ cd bingdailyUse the following command to install this software:
$ make
$ make installThe default PREFIX is set to /usr/local. In order to successfully complete the installation, you need to have write permissions for the installation location.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.