Eine Minute
MATE 1.8.2 Desktop - Random Wallpaper
Folgendes Script kann verwendet werden, um unter MATE Desktop (bei mir derzeit Version 1.8.2) ein zufälliges Wallpaper aus einem Ordner zu laden:
# Script to randomly set Background from files in a directory
while true;do
# specify how long to wait in seconds between changes
sleep 3600
# Directory Containing Pictures
DIR="/home/USER/wallpaper"
# Command to Select a random jpg file from directory
# Delete the *.jpg to select any file but it may return a folder
PIC=$(ls $DIR/*.* | shuf -n1)
# Command to set Background Image
gsettings set org.mate.background "picture-options" "scaled"
gsettings set org.mate.background "picture-filename" "${PIC}"
done
98 Wörter
06.08.2015 14:05 (Letzte Aktualisierung: 06.08.2015 14:05)