Created
September 18, 2018 10:37
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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