mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2025-12-09 16:48:01 -08:00
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:
10
aniwrapper
10
aniwrapper
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user