added flag -c that cleans up all backups

Former-commit-id: 89785c257c
Former-commit-id: 25c655a6500c94accf213648a109e0adaedae3a7
Former-commit-id: a81f6f0fff0713466af5d9abebc9db08e69382f7
This commit is contained in:
elena 2017-12-07 08:13:05 +02:00
parent 8871bef77c
commit 97061a15ce

View file

@ -15,6 +15,12 @@ if [ $# == 0 ]; then
exit 0;
fi
if [[ "$1" = "-c" ]]; then
echo "> Cleaning backups and exiting."
rm -rf wally_backup-*
exit 0;
fi
# Create backup of linked files
echo "> Backing up linked files"
TIMESTAMP="$(date +%F-%H:%M:%S)"
@ -44,6 +50,7 @@ else
ARG=$1
echo "> Calling wal at $ARG... toot toot..."
wal -i $ARG
feh --bg-fill $ARG
echo "> New colorscheme generated!"
fi
@ -75,7 +82,6 @@ openbox --reconfigure
echo "> Openbox is reconfigured!"
# Create steam theme
cp ~/.cache/wal/colors ~/.cache/wal/colors.steam
python3 ~/Programs/wal_steam/mywalsteam.py -w
echo "> Generated steam theme!"