summaryrefslogtreecommitdiff
path: root/.local/bin/pod-dl
blob: 07e1d6b9bbf82a1ae5bbfdd2bc65d616fb2ca653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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