blob: dce3cad00f3f09385bcf2788620aa8de63c79929 (
plain)
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
|
# Options
auto-reload yes
browser linkhandler
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
text-width 80
# Keys
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
# Macros
macro a set browser "tsp yt-dlp --embed-metadata -xic -f bestvideo*+bestaudio/best -O after_move:'%(title)s [%(id)s].%(ext)s'" ; open-in-browser ; set browser linkhandler ; -- "Download a file via yt-dlp"
macro c set browser "clonerepo" ; open-in-browser ; set browser linkhandler ; -- "Clone a git repo"
macro d set browser "dmenuhandler" ; open-in-browser ; set browser linkhandler ; -- "Open dmenu handler"
macro e set browser "nvim ~/.config/newsboat/config" ; open-in-browser ; set browser linkhandler ; -- "Open newsboat config"
macro l set browser "lynx" ; open-in-browser ; set browser linkhandler ; -- "Open link in lynx"
macro m set browser "mpc add $(yt-dlp -f bestaudio --get-url %u | tail -n 1) && mpc play" ; open-in-browser ; -- "Play link in mpc"
macro M set browser "qndl -m" ; open-in-browser ; set browser linkhandler ; -- "Download a music file via taskspooler"
macro o open-in-browser ; -- "Open link based on types"
macro t set browser "peertubetorrent %u 480" ; open-in-browser ; set browser linkhandler ; -- "Peertube torrent 480p"
macro T set browser "peertubetorrent %u 1080" ; open-in-browser ; set browser linkhandler ; -- "Peertube torrent 1080p"
macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler ; -- "Play a video"
macro V set browser "qndl -v" ; open-in-browser ; set browser linkhandler ; -- "Download a video file via taskspooler"
macro w set browser "w3m" ; open-in-browser ; set browser linkhandler ; -- "Open link in w3m"
macro y set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser linkhandler ; -- "Copy link to clipboard"
macro Y set browser "pipe-viewer --comments=%u" ; open-in-browser ; set browser linkhandler -- "Open youtube comments via pipe-viewer"
# Colors
color listnormal cyan default
color listfocus black yellow standout bold
color listnormal_unread blue default
color listfocus_unread yellow default bold
color info red black bold
color article white default bold
# Highlights
highlight all "---.*---" yellow
highlight feedlist ".*(0/0))" black
highlight article "https?://[^ ]+" color14 default
highlight article "URL:.*$" color10 default
highlight article ":.*\\(link\\)$" color6 default
highlight article ":.*\\(image\\)$" color2 default
highlight article ":.*\\((embedded flash|video)\\)$" color4 default
highlight article "\\[[0-9][0-9]*\\]" color13 default bold
highlight article "\\[image:?\\ [0-9][0-9]*.*\\].*" color8 default bold
highlight article "\\[(embedded flash|video):?\\ [0-9][0-9]*.*\\].*" color8 default bold
highlight article "^(Podcast\\ Download|Image)" color8 default
highlight article "^Feed:.*$" color13 default
highlight article "^Title:.*$" color11 default bold
highlight article "^Author:.*$" color14 default
highlight article "^Date:.*$" default default
highlight article "^Links:\\ *$" color5 default
highlight article "^Link:.*$" color12 default
highlight article "(mailto|ftp)?:?\\ ?[a-zA-Z0-9]+@[a-zA-Z0-9]+.?[a-zA-Z0-9]*.?[a-zA-Z0-9]*" color3 default
|