diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-17 01:16:16 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-17 01:16:16 -0400 |
commit | 943ff1a19f4d7199ef2e70676eacadac7ad0d4f0 (patch) | |
tree | cf51bcc4f0363ef6de29188d14ea09c9a3400de7 | |
parent | c1bd7c1f8b62fc23fb79d100883d7c9265f48043 (diff) |
fix newsboat youtube linkhandler path
-rw-r--r-- | .config/newsboat/config | 4 | ||||
-rwxr-xr-x | .local/bin/pod-dl | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/.config/newsboat/config b/.config/newsboat/config index 4382f3f..900c942 100644 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -30,14 +30,12 @@ color listfocus_unread yellow default bold color info red black bold color article cyan default -browser $SCRIPTS/handling/linkhandler -# external-url-viewer "less" +browser ~/.local/bin/linkhandler macro , open-in-browser macro t set browser "tsp youtube-dl --add-metadata -ic"; open-in-browser ; set browser linkhandler macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best"; open-in-browser ; set browser linkhandler macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler macro w set browser "w3m"; open-in-browser ; set browser linkhandler -# macro P external-url-viewer "grep" macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkandler player "$SCRIPTS/handling/pod-dl" diff --git a/.local/bin/pod-dl b/.local/bin/pod-dl index 07e1d6b..ab26367 100755 --- a/.local/bin/pod-dl +++ b/.local/bin/pod-dl @@ -1,12 +1,12 @@ #!/bin/sh -tmux kill-session -t Podcast 2 > /dev/null +# 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" +$TERMINAL -c dropdown -t Podcast -e ~/.local/bin/tmux-vlc "$url" # notify-send -i "$HOME/.fonts/svg/rss.svg" "Download initiated" # wget -LO $dir $url && \ |