note bloat gone; pix replaced with emojis

This commit is contained in:
Luke Smith
2019-02-22 16:39:58 -05:00
parent f3d33a0b67
commit f575dadeef
5 changed files with 7 additions and 19 deletions

View File

@@ -2,10 +2,10 @@
# $1 is a url; $2 is a command
[ -z "$1" ] && exit
base="$(basename "$1")"
notify-send -i "$PIX/dl.svg" "Queuing $base..."
notify-send "Queuing $base..."
cmd="$2"
[ -z "$cmd" ] && cmd="youtube-dl --add-metadata"
idnum="$(tsp $cmd "$1")"
realname="$(echo "$base" | sed "s/?\(source\|dest\).*//;s/%20/ /g")"
tsp -D "$idnum" mv "$base" "$realname"
tsp -D "$idnum" notify-send -i "$PIX/check.svg" "$realname done."
tsp -D "$idnum" notify-send "👍 $realname done."