From e371d9edd474bcf89cf5d462eaccb8638900b390 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 3 Oct 2020 19:27:15 -0400 Subject: Initial commit --- .local/bin/pod-dl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 .local/bin/pod-dl (limited to '.local/bin/pod-dl') diff --git a/.local/bin/pod-dl b/.local/bin/pod-dl new file mode 100755 index 0000000..07e1d6b --- /dev/null +++ b/.local/bin/pod-dl @@ -0,0 +1,30 @@ +#!/bin/sh + +tmux kill-session -t Podcast 2 > /dev/null + +file=$(tail -n 1 $HOME/.local/share/newsboat/queue) +url=$(echo $file | sed 's/."\/home.*$//') +dir=$(echo $file | sed 's/^.*"\/home/\/home/; s/.$//') + +$TERMINAL -c dropdown -t Podcast -e $SCRIPTS/utilities/tmux-vlc "$url" + +# notify-send -i "$HOME/.fonts/svg/rss.svg" "Download initiated" +# wget -LO $dir $url && \ +# notify-send -i "$HOME/.fonts/svg/rss.svg" "Download Complete" && \ +# st -e $HOME/.scripts/tools/tm-vlc $dir + + +#!/bin/sh + +# tmux kill-session -t tm-vlc +# killall -q vlc + +# file=$(cat $HOME/.local/share/newsboat/queue | sed 2q | tail -n 1) +# url=$(echo $file | sed 's/."\/home.*$//') +# dir=$(echo $file | sed 's/^.*"\/home/\/home/; s/.$//') + +# notify-send -i "$HOME/.fonts/svg/rss.svg" "Download initiated" +# setsid wget -LO $dir $url & sleep 2s && st -e $HOME/.scripts/tools/tm-vlc "$dir" && \ +# notify-send -i "$HOME/.fonts/svg/rss.svg" "Download Complete" + +# echo "" > $HOME/.local/share/newsboat/queue -- cgit v1.2.3