You are not logged in.

#1 2024-07-05 20:36

seb3773
Member
Registered: 2023-11-01
Posts: 119

bing+nasa 'wallpaper of the day' for Q4OS Trinity :-)

Hello, I found a lttle script on github designed to 'enable bing wallpapers on linux'. This was not working with TDE, so I decided to adapt it. And I improved it (a lot tongue).
Here it is: (from my github : https://github.com/seb3773/bing-wallpap … -linux_tde )

Bing Wallpapers For Trinity DE
This enables bing wallpapers on debian with Trinity DE.
forked (& improved) from : github.com/whizzzkid/bing-wallpapers-for-linux

Description
bingwallpaper.sh is a simple script that retrieves 'Bing image of the day' and set it as current wallpaper. It is designed for Trinity DE.
You can run it 'singleshot' by just executing the script without arguments, run it as a daemon (-d), or add it to cron jobs (-c).

You can put the script anywhere, but I recommend the folder /usr/local/bin so it will be available for all users as a direct command.

Settings
You can set the check interval in daemon/cronjob mode (-i); don't forget the image is renewed only once a day, so depending of your usage it's maybe not usefull to set a too short interval.
You can set the image size to be downloaded (-s) between 4 available resolutions provided by the bing images api (800x600, 1366x768, 1920x1080, 1920x1200)
You can specify too the folder where images will be downloaded (-f); if it doesn't exist yet, it will be created if possible.

Usage:
"bingwallpaper.sh" run and exit
"bingwallpaper.sh -d" run as daemon
"bingwallpaper.sh -k" kill daemon
"bingwallpaper.sh -c" add task to cron
"bingwallpaper.sh -r" remove task from cron
"bingwallpaper.sh -i" set check interval
"bingwallpaper.sh -f" set wallpapers download folder
"bingwallpaper.sh -s" set image size
"bingwallpaper.sh -p" display status/settings
"bingwallpaper.sh -h" help



Hope you'll enjoy it smile

**Update: nasawallpaper.sh, with exactly the same functions (except image size) but for Nasa image of the day ^^

(scripts attached; don't forget to set executable: sudo chmod +x bingwallpaper.sh
or sudo chmod +x nasawallpaper.sh )

Last edited by seb3773 (2024-07-10 13:24)


Attachments:
sh nasawallpaper.sh, Size: 8.94 KiB, Downloads: 18
sh bingwallpaper.sh, Size: 10.48 KiB, Downloads: 17

My Q4OS scripts: win10/osx theming, perfs optimisation, laptop configuration, ...  for trinity users -->  https://github.com/seb3773/q4osXpack

Offline

#2 2024-07-08 12:36

Midas
Member
Registered: 2017-12-15
Posts: 176

Re: bing+nasa 'wallpaper of the day' for Q4OS Trinity :-)

Nice. cool

Offline

Board footer

Powered by FluxBB