-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig
95 lines (83 loc) Β· 3.46 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# vim:ft=config:
# Main config {{{
# show-read-articles no
always-display-description true
article-sort-order date-asc
browser "open -g -a 'Google Chrome Canary' %u"
feed-sort-order date-desc
max-items 100
notify-always yes
notify-screen yes
prepopulate-query-feeds yes
refresh-on-startup no
auto-reload yes
reload-threads 3
reload-time 120
save-path "~/Newsboat/saved-articles"
bookmark-cmd ~/.newsboat/bookmark.sh
bookmark-interactive no
bookmark-autopilot yes
show-read-feeds no
text-width 120
external-url-viewer "urlview"
feedlist-title-format "β[%u feeds with new articles]ββ%>ββ(%N %V)β"
feedlist-format "%S %-80t %?d?- %-80d&? %> %U/%c"
articlelist-title-format "β[%T]ββ(%u unread, %t total)ββ%>ββ(%U)β"
articlelist-format "%?T?%-60T ?%t"
notify-format "%I %d %n %f new articles (%n unread articles, %f unread feeds)"
datetime-format "%b %d %H:%M"
html-renderer "w3m -dump -T text/html"
# Podcasts config
download-path "~/Downloads/podcasts/%n"
player "mpv"
# }}}
##-------- macros {{{
## Note: macro prefix key ( default: , )
## add video or audio to play queue using mpv (requires: mpv, youtube-dl)
macro p set browser "mpv --ontop --speed=1.5 %u"; open-in-browser ; set browser "$BROWSER %u"
# Play podcast
# macro e open ; enqueue ; set browser "~/.newsboat/play_podcast.sh" ; open-in-browser ; set browser "$BROWSER %u" ; quit
macro e pipe-to "grep -o 'http.*mp3' | xargs -n1 mpv --speed=1.5" ; toggle-article-read "read"
# read reddit comments with rtv (reddit terminal viewer)
# macro r set browser "rtv -l %u"; open-in-browser ; set browser "$BROWSER %u"
macro r set browser "tmux split-window && tmux send-keys 'rtv -l %u && tmux kill-pane\n'"; open-in-browser ; set browser "$BROWSER %u"
# copy url to clipboard "yank"
macro y set browser "echo %u | pbcopy"; open-in-browser ; set browser "$BROWSER %u"
## }}}
# formatting and colorization ------------------------------------------ {{{
highlight feedlist "^ *[0-9]+ *N " color156 default
highlight articlelist "^ *[0-9]+ *N " color156 default
highlight article "^(Feed|Title|Author|Link|Date|Linux):.*" color75 default
highlight article "^Podcast Download URL:.*" color71 default
highlight article "^Links:" white color240 underline
highlight article "\\[[0-9][0-9]*\\]" color72 default bold
highlight article "\\[image [0-9][0-9]*\\]" color72 default bold
highlight article "\\[embedded flash: [0-9][0-9]*\\]" color72 default bold
highlight article ":.*\\(link\\)$" color74 default
highlight article ":.*\\(image\\)$" color74 default
highlight article ":.*\\(embedded flash\\)$" color74 default
highlight article "^(Feed|Title|Author|Link|Date):.*" yellow default bold
# highlight all "Linux" yellow black blink
color info blue default
color listnormal color237 default
color listnormal_unread color244 default
color listfocus_unread color7 color27
color listfocus color7 color27
# color listfocus color166 color235
color article color244 color234
# }}}
# Key bindings ---------------------------------- {{{
bind-key j down feedlist
bind-key k up feedlist
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key j down article
bind-key k up article
bind-key B bookmark article
bind-key O open-in-browser-and-mark-read
bind-key U show-urls
# }}}
# ignore-article "*" "title =~ \"Sponsor\""
# ignore-article "*" "title =~ \"Sponsored\""