dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 7bb4438051014226eaac5f1dae9295cfe83b191a
parent 255eebb23ab6b2bce8d388d7a7451599731f3def
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Wed, 27 Jan 2021 11:02:11 +0100

newsboat: support playing URLs with mpd

Thank you youtube-dl!

Diffstat:
Mnewsboat/config | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/newsboat/config b/newsboat/config @@ -58,11 +58,12 @@ unbind-key , bind-key SPACE macro-prefix macro SPACE set browser "open -g %u"; open-in-browser; set browser "linkhandler %u" macro v set browser "linkhandler"; open-in-browser ; set browser "linkhandler %u" +macro a set browser "mpc add \"$(youtube-dlc -f 'best[ext=mp3]/best[ext=m4a]/251/140/m4a' -g %u | tail -n 1)\" && mpc play"; open-in-browser; set browser "linkhandler %u" macro w set browser "w3m -config ~/.config/w3m/config %u"; open-in-browser; set browser "linkhandler %u" macro i set browser "youtube-dlc --get-title --get-duration --get-description %u | less"; open-in-browser; set browser "linkhandler %u" macro c set browser "printf '%s' %u | clc" ; open-in-browser ; set browser "linkhandler %u" macro u set browser "urlview"; open-in-browser ; set browser "linkhandler %u" -macro a set browser "newsboat-dl aonly %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "linkhandler %u" -macro d set browser "newsboat-dl av %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "linkhandler %u" macro l set browser "notify 'Downloading' %u 'bcdl' && setsid -f bcdl %u >/tmp/bcdl$(date +%s).log 2>&1"; open-in-browser; set browser "linkhandler %u" macro s set browser "pocket save %u && notify 'Saved to Pocket' %u 'pocket' || notify 'Could not save' %u 'pocket'"; open-in-browser ; set browser "linkhandler %u" +macro d set browser "newsboat-dl av %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "linkhandler %u" +macro n set browser "newsboat-dl aonly %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "linkhandler %u"