blob: 19d4c1af8e7f519a1f8a9c6690d69d03484a5f86 (
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
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
101
102
103
104
105
106
107
108
109
110
111
112
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
|