226 lines
9.5 KiB
Org Mode
226 lines
9.5 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 none
|
|
# =============================================================
|
|
|
|
|
|
# =============================================================
|
|
# 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
|
|
------------------------
|
|
-------NEWSFEEDS--------
|
|
------------------------
|
|
https://itsfoss.com/feed/ "~NEWSFEED: It's Foss" unix
|
|
https://lukesmith.xyz/rss.xml "~NEWSFEED: Lukesmith" unix
|
|
http://www.planet.emacsen.org/atom.xml "~NEWSFEED: Planet Emacs" emacs
|
|
http://sachachua.com/blog/feed/ "~NEWSFEED: Sacha Chua" emacs
|
|
http://xkcd.com/rss.xml "~NEWSFEED: XKCD" fun
|
|
https://scripter.co/categories/org/index.xml "~NEWSFEED: Scripter" orgmode
|
|
-------------------------
|
|
-------YOUTUBE-----------
|
|
-------------------------
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCkK9UDm_ZNrq_rIXCz3xCGA "~YOUTUBE: Bryan Lunduke" youtube unix
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~YOUTUBE: Luke Smith" youtube unix
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCOuIgj0CYCXCvjWywjDbauw "~YOUTUBE: Chat sceptique" youtube science
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCEfFUaIkjbI06PhALdcXNVA "~YOUTUBE: EmacsCast" youtube emacs
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCkRmQ_G_NbdbCQMpALg6UPg "~YOUTUBE: Emacsrocks" youtube emacs
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCQp2VLAOlvq142YN3JO3y8w "~YOUTUBE: John Kitchin" youtube emacs
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCq0imsn84ShAe9PBOFnoIrg "~YOUTUBE: Brian Douglas" youtube control
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCm5mt-A4w61lknZ9lCsZtBw "~YOUTUBE: Steve Brunton" youtube control
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCMFcMhePnH4onVHt2-ItPZw "~YOUTUBE: Hygiène Mentale" youtube science
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCxqAWLTk1CmBvZFPzeZMd9A "~YOUTUBE: Domain of Science" youtube science
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UC7vVhkEfw4nOGp8TyDk7RcQ "~YOUTUBE: BostonDynamics" youtube control
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCXPHFM88IlFn68OmLwtPmZA "~YOUTUBE: Greg Hurrell" youtube vim unix
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCUR1pFG_3XoZn3JNKjulqZg "~YOUTUBE: Thoughtbot" youtube unix
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCmkP178NasnhR3TWQyyP4Gw "~YOUTUBE: How To Mechatronics" youtube control
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UC2LZO6swZ9SLUEOks3WnsfA "~YOUTUBE: 2veritasium" youtube science
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCaNlbnghtwlsGF-KzAFThqA "~YOUTUBE: ScienceEtonnante" youtube science
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCSqyMHDUsc1gs6wz4sUy91w "~YOUTUBE: Jipihorn" youtube acoustic
|
|
https://www.youtube.com/feeds/videos.xml?channel_id=UCHnyfMqiRRG1u-2MsSQLbXA "~YOUTUBE: Veritasium" youtube science
|
|
-------------------------
|
|
-------REDDIT------------
|
|
-------------------------
|
|
https://www.reddit.com/r/linux/.rss "~REDDIT: r/linux" reddit linux
|
|
https://www.reddit.com/r/emacs/.rss "~REDDIT: r/emacs" reddit emacs
|
|
-------------------------
|
|
-------GIT_REPOS---------
|
|
-------------------------
|
|
https://github.com/LukeSmithxyz.atom "~GITHUB: LukeSmithxyz" github unix
|
|
-------------------------
|
|
-------ARCHLINUX---------
|
|
-------------------------
|
|
https://www.archlinux.org/feeds/packages/added/ "~ARCH: Packages Added"
|
|
https://www.archlinux.org/feeds/packages/removed/ "~ARCH: Packages Removed"
|
|
https://aur.archlinux.org/rss/ "~ARCH: Packages Added (AUR)"
|
|
https://wiki.archlinux.org/api.php?hidebots=1&urlversion=1&days=7&limit=50&action=feedrecentchanges&feedformat=rss "~ARCH: Arch Wiki"
|
|
#+end_src
|