summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-03-04 15:11:39 +0100
committerAdam Stück <adam@adast.xyz>2023-03-04 15:11:39 +0100
commit4f0adb2a410d0b0a53b3c68339a70a3b697c0a00 (patch)
tree2df3ee5aa41a05a0747a16c53a01015b2835ed17
parentb130d764858cc063d650236ec7c533c56eb2748c (diff)
newsboat: add macro to download video
-rw-r--r--.config/newsboat/config5
1 files changed, 1 insertions, 4 deletions
diff --git a/.config/newsboat/config b/.config/newsboat/config
index b4f0c28..2330a1f 100644
--- a/.config/newsboat/config
+++ b/.config/newsboat/config
@@ -1,5 +1,4 @@
show-read-feeds no
-# auto-reload yes
reload-threads 20
max-items 10
text-width 74
@@ -31,13 +30,11 @@ color end-of-text-marker color8 default
browser "setsid xdg-open %u >/dev/null 2>&1 &"
macro v set browser "setsid mpv %u >/dev/null 2>&1 &" ; open-in-browser ; set browser "setsid xdg-open %u >/dev/null 2>&1 &"
macro c set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser "setsid xdg-open %u >/dev/null 2>&1 &"
+macro d set browser "nohup yt-dlp -qi --embed-metadata --restrict-filenames %u &" ; open-in-browser ; set browser "setsid xdg-open %u >/dev/null 2>&1 &"
highlight all "---.*---" yellow
highlight feedlist ".*(0/0))" black
-# highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold
-# highlight article "(^Link:.*|^Date:.*)" default default
highlight article "https?://[^ ]+" green default
-# highlight article "^(Title):.*$" blue default
highlight article "\\[[0-9][0-9]*\\]" magenta default bold
highlight article "\\[image\\ [0-9]+\\]" green default bold
highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold