aniwrapper/setup.sh
ksyasuda a11d55b726 fix checkdb function and add needed .rasi conf
fixed checkdb function always returning 2 instead of the count

also add arc_dark_transparent_colors.rasi config file for use in meh.rasi
2021-10-30 11:27:37 -07:00

28 lines
548 B
Bash
Executable File

#!/usr/bin/env bash
log () {
printf "%s\n" "$1"
}
DIR="$HOME/.ani-cli/"
DB="history.sqlite3"
log "Deleting old directory..."
rm -rf "$DIR"
log "Directory deleted..."
log "Creating directory $DIR"
mkdir -p "$DIR"
log "Directory created"
log "Creating history database..."
sqlite3 "$DIR"/"$DB" < sql/watch_history_tbl.sql
sqlite3 "$DIR"/"$DB" < sql/search_history_tbl.sql
log "History database created..."
log "Moving theme files..."
cp themes/meh.rasi "$DIR"/
cp themes/arc_dark_transparent_colors.rasi "$DIR"/
log "Theme files moved..."