added flag -c that cleans up all backups

This commit is contained in:
elena 2017-12-07 08:13:05 +02:00
parent e39b683266
commit 89785c257c

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!"