update default theme file and make config a var

move skip intro script into scripts directory

change setup.sh to reflect new directory and theme file
This commit is contained in:
ksyasuda
2021-11-02 15:18:23 -07:00
parent 404beb96c0
commit 40202b7c65
7 changed files with 127 additions and 86 deletions

View File

@@ -5,14 +5,15 @@
CMD=/usr/local/bin/ani-cli
DEFAULT="$HOME/Videos/sauce/"
CFG_DIR="$XDG_CONFIG_HOME/ani-cli"
CFG_FILE="meh.rasi"
echo "CONFIG DIR: $CFG_DIR"
# echo "CONFIG DIR: $CFG_DIR"
# not a wrapper around the ani-cli-rofi
options="1. Stream|2. Download|3. Continue|4. Quit"
choice=$(echo "${options[@]}" | rofi -dmenu -sep '|' -config "$CFG_DIR/meh.rasi" -l 4 -i -p "Enter choice:")
choice=$(echo "${options[@]}" | rofi -dmenu -sep '|' -config "$CFG_DIR/$CFG_FILE" -l 4 -i -p "Enter choice:")
[ "$choice" == "4. Quit" ] && (
echo 'Quitting...'
@@ -25,7 +26,7 @@ if [[ "$selection" == "1." ]]; then
echo "STREAMING..."
$CMD
elif [[ "$selection" == "2." ]]; then
dl_dir=$(rofi -dmenu -config "$CFG_DIR/meh.rasi" \
dl_dir=$(rofi -dmenu -config "$CFG_DIR/$CFG_FILE" \
-l 1 -p "Enter downlaod dir:")
# if dl_dir is none set to current directory
[ "$dl_dir" == "" ] && dl_dir="$DEFAULT"