-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig
100 lines (85 loc) · 3.32 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
96
97
98
99
100
# newsboat config
# config
## basic config
download-path "~/Downloads/media/phone/podcasts/%n"
max-downloads 6
browser "~/scripts/open-in-browser-without-pluses"
# podboat player
player "mpv --no-audio-display"
# don't reload feeds, just use the last cron pull
auto-reload no
reload-threads 100
## formatting
download-filename-format "%t.%e"
feedlist-format " %n %t"
articlelist-format " %f %D %?T?|%-20T| ?%t"
datetime-format "%b %d"
## ignore patterns
ignore-mode "download" # use 'display' for testing to not have to remove cache
# docs: https://newsboat.org/releases/2.10.2/docs/newsboat.html#_filter_language
ignore-article "https://manga4life.com/rss/Onepunch-Man.xml" "title =~ \"\\.\""
ignore-article "https://04r1h.mrd.ninja/rss/b0d41e4c" "title =~ \"Error\""
ignore-article "https://04r1h.mrd.ninja/rss/7b0f0fac" "title =~ \"Error\""
ignore-article "https://04r1h.mrd.ninja/rss/bd82f3dd" "title =~ \"Error\""
ignore-article "https://04r1h.mrd.ninja/rss/f1710958" "title =~ \"Error\""
ignore-article "https://04r1h.mrd.ninja/rss/7b0f0fac" "title =~ \"Small Presses\""
ignore-article "https://04r1h.mrd.ninja/rss/7b0f0fac" "title =~ \"Analog Science Fiction\""
ignore-article "https://github.com/signalapp/Signal-Desktop/releases.atom" "title =~ \"beta\"" # filter out beta
ignore-article "https://github.com/zellij-org/zellij/releases.atom" "title =~ \"\.[^0]$\"" # filter out patches
## misc
user-agent "newsboat/2.20.1 Linux"
max-items 0
# keybindings
## available operations: https://newsboat.org/releases/2.14.1/docs/newsboat.html#available-operations
## vim hotkeys
bind-key j down
bind-key k up
bind-key m toggle-show-read-feeds
bind-key ^D pagedown
bind-key ^U pageup
bind-key / open-search tagselection
unbind-key l
bind-key l open
bind-key h quit
unbind-key q
bind-key q hard-quit
bind-key ESC hard-quit
bind-key i sort
bind-key I rev-sort
bind-key g home all
bind-key G end all
unbind-key C
bind-key b toggle-article-read
bind-key J next-feed
bind-key K prev-feed
# unbind-key R # disable manual refresh
## rebind podboat to mutt hotkeys
unbind-key P
bind-key $ pb-purge
unbind-key d
bind-key ENTER pb-download
unbind-key D
bind-key d pb-delete
unbind-key a
bind-key SPACE pb-toggle-download-all
unbind-key c
bind-key i pb-cancel
# colorscheme
color background color252 color234
color listnormal color240 color234
color listfocus color234 color220 bold
color listnormal_unread color252 color234
color listfocus_unread color234 color220 bold
color info color240 color234
color article color252 color234
# macros
# default macro key: ,
## Play youtube video in mpv
macro y set browser "~/scripts/newsboat/queue-yt %u" ; open-in-browser ; set browser "$BROWSER %u"
## Download video using youtube-dl
macro d set browser "~/scripts/newsboat/yt-dl '%u'" ; open-in-browser ; set browser "$BROWSER %u"
macro 3 set browser "~/scripts/newsboat/yt-mp3 '%u'" ; open-in-browser ; set browser "$BROWSER %u"
macro w set browser "~/scripts/newsboat/web-reader %u" ; open-in-browser ; set browser "$BROWSER %u"
macro m set browser "mpv --no-audio-display '%u'" ; open-in-browser ; set browser "$BROWSER %u"
macro p set browser "~/scripts/newsboat/newsboat-mpv-enqueued-podcast" ; open-in-browser ; set browser "$BROWSER %u"
macro r set browser "~/scripts/newsboat/release-aur-from-rss" ; open-in-browser ; set browser "$BROWSER %u"