Skip to content

Instantly share code, notes, and snippets.

@krisives
Created September 18, 2018 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisives/91a66bc02c19e76c776b15563fa5e0b3 to your computer and use it in GitHub Desktop.
Save krisives/91a66bc02c19e76c776b15563fa5e0b3 to your computer and use it in GitHub Desktop.
A script that saves the KDE Picture of the Day (POTD) you can set on a cronjob to keep a history of all domains.
#!/bin/bash
today=$(date +%Y-%m-%d)
dir=$(realpath ~/Pictures/Daily)
mkdir -p "$dir"
for path in ~/.cache/plasmashell/plasma_engine_potd/*; do
name=$(basename "$path")
saved="$dir/$today-$name.png"
if [ ! -f "$saved" ]; then
# echo "Copying"
cp "$path" "$saved"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment