literate-dotfiles/dotfiles/newsboat.org
2019-01-31 09:41:03 +01:00

289 lines
17 KiB
Org Mode

#+TITLE: Newsboat Configuration
* Config
:PROPERTIES:
:header-args: :tangle ~/.config/newsboat/config
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
# =============================================================
# Basic configuration
# =============================================================
# All feeds will be automatically reloaded after a certain time has passed
# auto-reload yes
auto-reload no
# reload-time 60
# suppress-first-reload yes
confirm-exit yes
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
goto-first-unread no
goto-next-feed no
save-path "~/Saved Articles"
download-path "~/Downloads"
# If set to no, then the keymap hints on the bottom of screen will not be displayed.
show-keymap-hint no
feed-sort-order lastupdated
# =============================================================
# =============================================================
# Notifications
# =============================================================
notify-format "newsbeuter: %n unread articles within %f unread feeds"
notify-program notify-send
# =============================================================
# =============================================================
# Bindings
# =============================================================
bind-key j down
bind-key k up
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key G end
bind-key g home
bind-key d pagedown
bind-key u pageup
bind-key l open
bind-key h quit
bind-key a toggle-article-read
bind-key n next-unread
bind-key N prev-unread
bind-key D pb-download
bind-key U show-urls
# bind-key x pb-delete
bind-key t set-tag
bind-key T clear-tag
bind-key r reload # Reload the currently selected feed
bind-key R reload-all # Reload all feeds
# =============================================================
# =============================================================
# Macros - Starts with , key
# =============================================================
# Default Browser
browser "qutebrowser %u"
# Open in Browser
macro , open-in-browser
# Download Video with Youtube-DL
# TODO - Should write a script for that? Maybe open a tmux script if newsboat is in tmux pane?
macro t set browser "~/scripts/download-video.sh %u" ; open-in-browser ; set browser "qutebrowser %u"
# Download Audio with Youtube-DL
macro a set browser "~/scripts/download-audio.sh %u" ; open-in-browser ; set browser "qutebrowser %u"
# Open Video with MPV
macro v set browser "setsid nohup mpv %u &> /dev/null &" ; open-in-browser ; set browser "qutebrowser %u"
# Open With W3M
macro w set browser "w3m %u" ; open-in-browser ; set browser "qutebrowser %u"
# Copy Address to clipboard
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser "qutebrowser %u"
# =============================================================
# =============================================================
# hide articles matching
# =============================================================
ignore-article "*" "title =~ \"Sponsor\""
ignore-article "*" "title =~ \"Advertisement\""
ignore-mode "display"
# =============================================================
# =============================================================
# Feedlist and Article Format
# =============================================================
feedlist-format "%4i %n %11u %t"
feedlist-title-format "N %V - Your feeds (%u unread, %t total)%?T? - tag `%T'&?"
articlelist-format "%3i %f %D %?T?|%-17T| ?%t"
articlelist-title-format "%N %V - Articles in feed '%T' (%u unread, %t total) - %U"
itemview-title-format "Article '%T'"
# =============================================================
# =============================================================
# Color Scheme
# =============================================================
include "~/.config/newsboat/colors"
# =============================================================
#+END_SRC
* Colors
:PROPERTIES:
:header-args: :tangle ~/.config/newsboat/colors
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
# =============================================================
# Color Scheme
# =============================================================
highlight feedlist "^ *[0-9]+ *N " cyan cyan
highlight articlelist "^ *[0-9]+ *N " cyan cyan
highlight article "(^Feed:.*|^Title:.*|^Author:.*)" red default
highlight article "(^Link:.*|^Date:.*)" white default
highlight article "^Podcast Download URL:.*" cyan default
highlight article "^Links:" magenta black underline
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
highlight article ":.*\\(link\\)$" cyan default
highlight article ":.*\\(image\\)$" blue default
highlight article ":.*\\(embedded flash\\)$" magenta default
color background default default
color listnormal default default
color listnormal_unread white default
color listfocus color255 cyan bold
color listfocus_unread color255 cyan bold
color info cyan black
color article default default
# =============================================================
#+END_SRC
* Config
:PROPERTIES:
:header-args: :tangle ~/.config/newsboat/urls
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
https://lukesmith.xyz/rss.xml unix
http://www.planet.emacsen.org/atom.xml emacs
http://sachachua.com/blog/feed/ emacs
https://www.reddit.com/r/emacs/.rss reddit emacs
http://xkcd.com/rss.xml fun
https://www.youtube.com/feeds/videos.xml?channel_id=UCJM10Rp7G0h9j5S92QszJ5Q "~Tales From The Click (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCRhyS_ylPQ5GWBl1lK92ftA "~Léo - TechMaker (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCBJycsmduvYEL83R_U4JriQ "~Marques Brownlee (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCPpNtkHeCnwN7Tl5oLq4AAg "~Une chanson, l'addition (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC4HANn7TBY-xcION-eL3rLA "~Daniil le Russe (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCww2zZWg4Cf5xcRKG-ThmXQ "~Norman Fait Des Vidéos (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCf0mOxfawezlHIVuHd3L2VA "~Didi Chandouidoui (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCuBzVunAVbcwzMfQaJVacuw "~Le Roi Des Rats (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCyWqModMQlbIo8274Wh_ZsQ "~Cyprien (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCWeg2Pkate69NFdBeuRFTAw "~Squeezie (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCOuIgj0CYCXCvjWywjDbauw "~Chat sceptique (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCEfFUaIkjbI06PhALdcXNVA "~EmacsCast (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCZHPwKyeypWwU8SNJSzQhCw "~Révisons nos Classiques (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCZeyUZmGAyRLDfM2ir3q-OQ "~Captain Popcorn (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCDEtZ7AKmwS0_GNJog01D2g "~Uncle Dave (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCk0fGHsCEzGig-rSzkfCjMw "~The Engineering Mindset (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCOchT7ZJ4TXe3stdLW1Sfxw "~Dans Ton Corps (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCkK9UDm_ZNrq_rIXCz3xCGA "~Bryan Lunduke (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCkRmQ_G_NbdbCQMpALg6UPg "~Emacsrocks (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCQp2VLAOlvq142YN3JO3y8w "~John Kitchin (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCq0imsn84ShAe9PBOFnoIrg "~Brian Douglas (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC6mzA8J7n0ylf0RnDpj-vrg "~PS Audio (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCm5mt-A4w61lknZ9lCsZtBw "~Steve Brunton (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCyGEYs6CykOtrb8Ok69kL9w "~Alain Olivetti (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCUR03ZSZlEvCO6EWwv4jU2w "~Absol Vidéos (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCP5tjEmvPItGyLhmjdwP7Ww "~RealLifeLore (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCDPK_MTu3uTUFJXRVcTJcEw "~Mcfly &amp; Carlito (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCCMxHHciWRBBouzk-PGzmtQ "~Bazar du Grenier (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCMFcMhePnH4onVHt2-ItPZw "~Hygiène Mentale (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCtI0Hodo5o5dUb67FeUjDeA "~SpaceX (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCdL3UpiseRlvxXuORJjmqZw "~Stardust - La Chaîne Espace (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC6wrGV-8evsewfCpVnYv2sw "~ESRFsynchrotron (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCxqAWLTk1CmBvZFPzeZMd9A "~Domain of Science (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC5X4e8ScZI2AFd_vkjSoyoQ "~AstronoGeek (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCTafEJoRl5myC8A50plIrng "~FabienOlicard (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC5ClFK9Ko4ACRgXjRZc_GfA "~Rhinofeed (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCWty1tzwZW_ZNSp5GVGteaA "~La statistique expliquée à mon chat (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC4PasDd25MXqlXBogBw9CAg "~Mickaël Launay (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC7vVhkEfw4nOGp8TyDk7RcQ "~BostonDynamics (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCXPHFM88IlFn68OmLwtPmZA "~Greg Hurrell (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCqdRx3JV3xRchi4_xwFJUTA "~8FabLab (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCs7Jg5KBsgiova4CrseuwIw "~TheGrandTest (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCUR1pFG_3XoZn3JNKjulqZg "~Thoughtbot (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC9Ntx-EF3LzKY1nQ5rTUP2g "~Cyriak (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCmkP178NasnhR3TWQyyP4Gw "~How To Mechatronics (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCJRljQ8OcyfzHBYpS_bDbow "~La Mezzanine (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC3gZqwD45zGCsduBn-Q2lew "~Gabrielle Grau (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC9BnGZLT4iPaJtDOXYwQuHQ "~Primum Non Nocere (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCsz9DiwPtgDvxJ-njWnieZw "~Passe-Science (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCP46_MXP_WG_auH88FnfS1A "~Nota Bene (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC5eOLQO5VUEFJukNg9cl5jg "~Dave Sheik (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC4Euikzr0bLKsnNuIKW6Sfg "~On n'est pas couché (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC2LZO6swZ9SLUEOks3WnsfA "~2veritasium (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCeR8BYZS7IHYjk_9Mh5JgkA "~Scilabus (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCCsdIja21VT7AKkbVI5y8bQ "~Alain Vaillancourt (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCr-cm90DwFJC0W3f9jBs5jA "~EEVblog2 (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC_ZChHhr5nDrUymz7qsRqRw "~Confér'ENS (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC2UT8pPDlUvRbQXTVOf5Ocw "~Hihacks (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCSULDz1yaHLVQWHpm4g_GHA "~Monsieur bidouille (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCjsHDXUU3BjBCG7OaCbNDyQ "~Le Sense Of Wonder (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCwRXb5dUK4cvsHbx-rGzSgw "~Derek Banas (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCND0gjuG9ltEWDvh82VJITg "~Jeannot Nymouce (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCWMYFDuCcvkmPiOf1RP_IKQ "~Bigorneaux et Coquillages (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCYD22MFqaNqXp-ogTMosW_A "~Le Show Jaune (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC0qKPcBbWJpJbyxPhtye5cg "~Ce soir ou jamais (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCVqx3vXNghSqUcVg2nmegYA "~U꞊RI (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCaNlbnghtwlsGF-KzAFThqA "~ScienceEtonnante (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCNmLe68qKzdjuEpT_YTDFuA "~Etonnarium (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC2qLXSbTeNI3bHkfrHGvn1g "~ProfOkita (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCm3C3OSgcyzaTBXrNRupB3Q "~Le Woop (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCUK0HBIBWgM2c4vsPhkYY4w "~The Slow Mo Guys (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCH6ppHEvV3_WIXEwmhv9HEg "~Deus Ex Silicium (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC5QPFDZ3Y4ylkkGJc6Y1OOA "~Philippe Demerliac (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCtqICqGbPSbTN09K1_7VZ3Q "~DirtyBiology (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC2bkHVIDjXS7sgrgjFtzOXQ "~Engineerguy (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCw3tZ7g_FljNjzGprCuptpA "~Taupe10 (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCwbV8cTR4yBgFdfa_BXV2OA "~Le Fossoyeur de Films (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC7DdEm33SyaTDtWYGO2CwdA "~Physics Girl (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCx8mQU1dOemRUTPmrjs_Jaw "~MrGalagomusic (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCSqyMHDUsc1gs6wz4sUy91w "~Jipihorn (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC8gSNcKgwBK7B4ulB8nh_gw "~Igor Presnyakov (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCiLhOvfEbf_uPvlcWWZKOrw "~Gonzaguetv (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCcziTK2NKeWtWQ6kB5tmQ8Q "~E-penser (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCm5wThREh298TkK8hCT9HuA "~Data Gueule (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC_GlthPB9gzdxfkTTEIVxMA "~Incroyables Expériences (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCHnyfMqiRRG1u-2MsSQLbXA "~Veritasium (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UC2_OG1L8DLTzQ7UrZVOk7OA "~Axolot (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCAFQjCZo5okIPkHUQlBZM-g "~Bonjour Tristesse (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCTt2AnK--mnRmICnf-CCcrw "~Le Rire Jaune (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCyi6pFP-lmaDD3Eb4dqsvdg "~Ioduremetallique (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCGgvKW19IWVvUUblrr8EgHA "~Experimentboy 2 (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCvGag7MyHR8H9oRm9iL9Ifw "~Experimentboy (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCj_iGliGCkLcHSZ8eqVNPDQ "~Grafikart.fr (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCt52sko033qGQl9EjtgTWPA "~Juliette Koch (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCeQEKFH31vvD-InkTGSvCrA "~Brusspup (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCxeA1l2E5AYrtpkqUbBEg3A "~Pierre Lecourt (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCUJQSGHlYC9Xyz-uNfSpSsA "~ElectronikHeart (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCtI6_1vGanPlH5lgVIDjJGQ "~MrAntoineDaniel (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCkEa1AfdeB93-he4VziKGFg "~Jigmé (Youtube)" youtube
https://www.youtube.com/feeds/videos.xml?channel_id=UCfXXAQ-mp1uUcvSpvMcAAtw "~LinksTheSun (Youtube)" youtube
#+END_SRC