change rofi menu to have 12 lines by default

no longer run count query on database and set lines based off the count
This commit is contained in:
ksyasuda
2021-11-01 00:23:51 -07:00
parent 1745810ade
commit a40e673ed3
4 changed files with 61 additions and 45 deletions

View File

@@ -1,8 +1,10 @@
#!/usr/bin/env bash
CMD=/usr/bin/ani-cli
# not a wrapper around the ani-cli-rofi
options="1. Stream|2. Download|3. Continue|4. Quit|"
options="1. Stream|2. Download|3. Continue|4. Quit"
choice=$(echo "${options[@]}" | rofi -dmenu -sep '|' \
-config ~/.ani-cli/meh.rasi -l 4 -i -p "Enter choice:")
@@ -16,13 +18,13 @@ selection=$(printf "%s\n" "$choice" | awk '{ print $1 }')
if [[ "$selection" == "1." ]]; then
echo "STREAMING..."
ani-cli
$CMD
elif [[ "$selection" == "2." ]]; then
dl_dir=$(rofi -dmenu -config ~/.ani-cli/meh.rasi \
-l 1 -p "Enter downlaod dir:")
# if dl_dir is none set to current directory
[ "$dl_dir" == "" ] && dl_dir="$HOME/Videos/sauce/"
ani-cli -d "$dl_dir"
$CMD -d "$dl_dir"
elif [[ "$selection" == "3." ]]; then
ani-cli -H
$CMD -H
fi