hello
This commit is contained in:
parent
a7494f2de1
commit
cb6c51248b
2 changed files with 13 additions and 12 deletions
21
scripts/yt
21
scripts/yt
|
@ -18,16 +18,17 @@ defcmd="fzf"
|
|||
guicmd="rofi -no-lazy-grab -dmenu -i -theme launchers-git/"$style".rasi" #uncomment next line for dmenu
|
||||
#guicmd="dmenu -i -l 15"
|
||||
promptcmd="$defcmd"
|
||||
if [ -z "$*" ]; then
|
||||
echo -n "Search: "
|
||||
read -r query
|
||||
else
|
||||
case "$1" in
|
||||
-r) query=$(echo | $guicmd -p "Search: ")
|
||||
promptcmd="$guicmd -p Video:";;
|
||||
*) query="$*";;
|
||||
esac
|
||||
fi
|
||||
# if [ -z "$*" ]; then
|
||||
# echo -n "Search: "
|
||||
# read -r query
|
||||
# else
|
||||
# case "$1" in
|
||||
# -r) query=$(echo | $guicmd -p "Search: ")
|
||||
# promptcmd="$guicmd -p Video:";;
|
||||
# *) query="$*";;
|
||||
# esac
|
||||
# fi
|
||||
query=$($guicmd -p "Search: ")
|
||||
if [ -z "$query" ]; then exit; fi
|
||||
# sanitise the query
|
||||
query=$(sed \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue