commit 7712bc18b495b2dd953f2ea836605b898411b7ee Author: pierre Date: Tue Oct 22 10:56:37 2024 +0100 upload unsplash_generator.sh before hugh changes diff --git a/unsplash_generator.sh b/unsplash_generator.sh new file mode 100755 index 0000000..7c4c6cb --- /dev/null +++ b/unsplash_generator.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Realy simple and easy script for automatic background change of gnome shell screensawer wallpaper +# Install: +# 1. put this script somewhere +# 2. set script executable (chmod +x unsplash.sh) +# 3. add script to your crontab (crontab -e) [0 * * * * YOUR_PATH/unsplash.sh >/dev/null 2>&1] + +PWD=$(dirname $(readlink -f $0)) + +# here are some other ways of downloading wallpaper + +# https://picsum.photos/ +#wget -O $PWD/wallpaper.jpg https://unsplash.it/1920/1200/\?random + +# https://source.unsplash.com/ +#wget -O $PWD/wallpaper.jpg https://source.unsplash.com/collection/630950/1920x1200 +wget -O $PWD/wallpaper.jpg https://source.unsplash.com/1920x1200/\?stars,nature,sea,wather + +# setting wallpaper as background for screensaver + +# http://youness.net/linux/set-random-wallpapers-unsplash-com-ubuntu +gsettings set org.gnome.desktop.screensaver picture-uri file://$PWD/wallpaper.jpg +gsettings set org.gnome.desktop.background picture-uri file://$PWD/wallpaper.jpg