dotfiles/scripts/search-download-video.sh

14 lines
249 B
Bash

#!/bin/sh
if [ -z "$1" ]; then
link="$(dash $SCRIPTS/yt-search.sh)"
else
link="$1"
fi
confirm="$(printf "Yes\nNo" | rofi -dmenu)"
[ "$confirm" = "Yes" ] && dash $TSCRIPTS/download-video.sh "$link" ||
notify-send "Download cancelled"