mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 17:35:57 +08:00
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:
parent
8871bef77c
commit
97061a15ce
1 changed files with 7 additions and 1 deletions
|
|
@ -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!"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue