summaryrefslogtreecommitdiff
path: root/newsboat
diff options
context:
space:
mode:
Diffstat (limited to 'newsboat')
-rw-r--r--newsboat/config113
1 files changed, 113 insertions, 0 deletions
diff --git a/newsboat/config b/newsboat/config
new file mode 100644
index 0000000..19d4c1a
--- /dev/null
+++ b/newsboat/config
@@ -0,0 +1,113 @@
+# GENERAL #
+
+reload-time 30
+auto-reload yes
+browser "setsid -f $BROWSER --new-tab %u > /dev/null 2>&1"
+cleanup-on-quit yes
+history-limit 2000
+show-keymap-hint no
+goto-next-feed no
+error-log ".config/newsboat/error.log"
+prepopulate-query-feeds yes
+suppress-first-reload yes
+
+# MACROS #
+
+# Queue videos
+macro a set browser "echo %u >> ~/.config/newsboat/queue" ; open-in-browser ; set browser "$BROWSER %u"
+
+# Clear queue
+macro c set browser "rm $HOME/.config/newsboat/queue > /dev/null 2>&1" ; open-in-browser ; set browser "$BROWSER %u"
+
+# Play queued videos
+macro p set browser "kill $(pidof mpv) ; setsid -f mpv --playlist=$HOME/.config/newsboat/queue > /dev/null 2>&1" ; open-in-browser ; set browser "$BROWSER %u"
+
+# Play queued videos fullscreen second monitor
+macro P set browser "kill $(pidof mpv) ; setsid -f mpv --x11-name=newsboatfs --fullscreen=yes --playlist=$HOME/.config/newsboat/queue > /dev/null 2>&1" ; open-in-browser ; set browser "$BROWSER %u"
+
+# Play video
+macro v set browser "kill $(pidof mpv) ; setsid -f mpv %u > /dev/null 2>&1" ; open-in-browser-and-mark-read ; set browser "$BROWSER %u"
+
+# Play audio only
+macro A set browser "kill $(pidof mpv) ; setsid -f mpv %u --no-video > /dev/null 2>&1" ; open-in-browser-and-mark-read ; set browser "$BROWSER %u"
+
+# Play video floating mode
+macro i set browser "kill $(pidof mpv) ; setsid -f mpv --x11-name=mpvfloat %u > /dev/null 2>&1" ; open-in-browser-and-mark-read ; set browser "$BROWSER %u"
+
+# Play fullscreen so i3 sends it to second monitor
+macro f set browser "kill $(pidof mpv) ; setsid -f mpv --x11-name=newsboatfs --fullscreen=yes %u > /dev/null 2>&1" ; open-in-browser ; set browser "$BROWSER %u"
+
+# Download video
+macro y set browser "yt-dlp %u -o $HOME/stf/vids/newsboat" ; open-in-browser ; set browser "$BROWSER %u"
+
+# Open in default browser
+macro o open-in-browser
+
+
+# NOTIFICATIONS #
+
+notify-always no
+notify-program "/usr/bin/dunstify"
+notify-format "Newsboat: %d new articles"
+
+# COLORS #
+
+color listnormal color245 default
+color listfocus color58 default
+color listnormal_unread white default bold
+color listfocus_unread color220 default bold
+color info black black bold
+color article default default
+
+highlight article "^Feed:.*" magenta default
+highlight article "^Title:.*" yellow default bold
+highlight article "^Author:.*" green default
+highlight article "^Date:.*" color223 default
+highlight article "^Link:.*" blue default
+highlight article "^Flags:.*" color9 default
+highlight article "\\[[0-9][0-9]*\\]" color66 default bold
+highlight article "\\[image [0-9][0-9]*\\]" color109 default bold
+highlight article "\\[embedded flash: [0-9][0-9]*\\]" color66 default bold
+
+highlight feedlist "[││]" color245 default bold
+highlight feedlist "├─.*" color245 default bold
+
+# Sorting feedlist
+
+highlight feedlist "\\❮Unsorted\\❯" color220
+highlight feedlist "\\❮Politics\/Philosophy\\❯" color214
+highlight feedlist "\\❮MDE\\❯" color221
+highlight feedlist "\\❮Schizophrenics Online\\❯" color214
+highlight feedlist "\\❮Tech\/Linux\/Coding\\❯" color221
+highlight feedlist "\\❮Shitpost\/Meme\\❯" color214
+highlight feedlist "\\❮Cooking\\❯" color221
+highlight feedlist "\\❮Text\/Blog\\❯" color221
+highlight feedlist "\\❮Nitter\\❯" color221
+
+feedlist-format "%?T?│ %9u ❮%T❯ %t &├─────────────────────────────────────────────────────────────────────────%t?"
+
+feedlist-title-format "┌───────────────────────────────NEWSBOAT────────────────────────────────────┐"
+
+# Destroying titles
+
+articlelist-title-format ""
+searchresult-title-format ""
+filebrowser-title-format ""
+dirbrowser-title-format ""
+help-title-format ""
+selecttag-title-format ""
+selectfilter-title-format ""
+urlview-title-format ""
+dialogs-title-format ""
+itemview-title-format ""
+
+# Vim keybindings
+
+unbind-key j
+unbind-key k
+unbind-key ENTER
+unbind-key o
+
+bind-key o open
+bind-key k up
+bind-key j down