From 97061a15ce904311c2d9d9382b1b6b29c4e5cb1d Mon Sep 17 00:00:00 2001 From: elena Date: Thu, 7 Dec 2017 08:13:05 +0200 Subject: [PATCH] added flag -c that cleans up all backups Former-commit-id: 89785c257c73f088995728c432eae8b2b8e6d8d3 Former-commit-id: 25c655a6500c94accf213648a109e0adaedae3a7 Former-commit-id: a81f6f0fff0713466af5d9abebc9db08e69382f7 --- Scripts/wally | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Scripts/wally b/Scripts/wally index 74b6280..a3ce8c7 100755 --- a/Scripts/wally +++ b/Scripts/wally @@ -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!"