From 7c0f505231dd0332b402b87f67fc7287571edc9e Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sun, 7 Nov 2021 22:02:31 -0800 Subject: [PATCH] update rofi config file and add db cleanup option --- aniwrapper | 2 +- db.sh | 73 +++++++++++++++++++++++++++---------------------- themes/meh.rasi | 60 +++++++++++++++++++++------------------- 3 files changed, 74 insertions(+), 61 deletions(-) diff --git a/aniwrapper b/aniwrapper index 36b960b..459be23 100755 --- a/aniwrapper +++ b/aniwrapper @@ -14,7 +14,7 @@ CFG_FILE="meh.rasi" options="1. Stream|2. Download|3. Continue|4. Playlist|5. Quit" -choice=$(echo "${options[@]}" | rofi -dmenu -sep '|' -config "$CFG_DIR/$CFG_FILE" -l 5 -i -p "Enter choice:") +choice=$(echo "${options[@]}" | rofi -dmenu -sep '|' -config "$CFG_DIR/$CFG_FILE" -l 5 -i -p "Aniwrapper") [ "$choice" == "5. Quit" ] && ( echo 'Quitting...' diff --git a/db.sh b/db.sh index 37a6caf..9325b68 100755 --- a/db.sh +++ b/db.sh @@ -7,39 +7,48 @@ log() { printf "%s\n" "$1" } -while getopts 'cdrq' OPT; do +while getopts 'cdrqC' OPT; do case "$OPT" in - c) - log "Creating database..." - sqlite3 "$DIR"/"$DB"