summaryrefslogtreecommitdiff
path: root/.config/newsboat/config
blob: 4e98e9688b802d8bd94346583c8f5fe4f0527a89 (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#-------- settings {{{
#------------------------------------------------------
#
#notify-xterm yes
auto-reload no
reload-time 30

external-url-viewer "urlview"
#reload-only-visible-feeds yes
#suppress-first-reload yes
refresh-on-startup no
# reload-only-visible-feeds yes
user-agent "Liferea/1.4.14 (Linux; en_US.UTF8; http://liferea.sf.net/)"
article-sort-order  date-asc
confirm-exit yes
browser ~/bin/scripts/urlportal.sh
#browser $BROWSERCLI
pager "w3m /usr/lib/w3m/cgi-bin/treat_as_url.cgi %f"
#download-full-page yes		# for feeds with link only then dl full page
download-retries 4
download-timeout 60
save-path ~/dwhelper
feedlist-format " %n %4i %11u %t -- %T"
#articlelist-format  "%4i %f %D   %?T?|%-17T|  ?%t"
#notify-format       "%d new articles (%n unread articles, %f unread feeds)"
show-read-feeds no
show-read-articles yes
notify-program      "/usr/bin/notify-send"
#goto-next-feed no
max-items 1000
#refresh-on-startup no
text-width 72
#prepopulate-query-feeds yes
#}}}
#-------- podboat {{{
#------------------------------------------------------
download-path		"~/Downloads/Podcasts"
max-downloads		5
player			"$PLAYER"

# send any links to queue in URL view
# http://www.newsboat.org/doc/newsboat.html#_macro_support
macro E set browser "echo %u >> ~/.newsboat/queue" ; open ; set browser ~/bin/scripts/urlportal.sh
# }}}
#-------- old reader  {{{
#------------------------------------------------------

#urls-source "oldreader"
#oldreader-login "v.graffagnino@btinternet.com"
#oldreader-password "N9\Ch0n\H@n9"

# }}}
#-------- themes {{{
#------------------------------------------------------
# include ~/.newsboat/themes/tronlegacy_by_gotbletu.theme
# include ~/.newsboat/themes/tronlegacy_clu_by_gotbletu.theme
# include ~/.newsboat/themes/tronlegacy_rinzler_by_gotbletu.theme

# }}}
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 cyan default

highlight article "(^Feed:.*|^Title:.*|^Author:.*)" red default bold
highlight article "(^Link:.*|^Date:.*)" default default
highlight article "https?://[^ ]+" green default

highlight article "^(Title):.*$" blue default
highlight article "\\[[0-9][0-9]*\\]" magenta default bold
highlight article "\\[image\\ [0-9]+\\]" green default bold
highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold
highlight article ":.*\\(link\\)$" cyan default
highlight article ":.*\\(image\\)$" blue default
highlight article ":.*\\(embedded flash\\)$" magenta default

#-------- Hotkey {{l{
#------------------------------------------------------

# vim like navigation
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 m toggle-show-read-feeds
bind-key ^D pagedown
bind-key ^U pageup
bind-key / open-search tagselection


bind-key i sort
bind-key I rev-sort

bind-key g home all
bind-key G end all

unbind-key l
bind-key l open
bind-key h quit
bind-key ESC hard-quit
bind-key a toggle-article-read
bind-key n next-unread
bind-key N prev-unread
bind-key D pb-download
bind-key x pb-delete
bind-key U show-urls

# use macro prefix key ( default: , )
macro i set browser "tmux split-window && tmux send-keys '$IMAGEVIEWER %u && tmux kill-pane\n'"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
# open in cli web-browser
macro o set browser "tmux split-window && tmux send-keys '$BROWSERCLI %u && tmux kill-pane\n'"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
# read reddit comments with rtv (reddit terminal viewer)
macro r set browser "tmux split-window && tmux send-keys '/bin/tuir -l %u && tmux kill-pane\n'"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
#macro r set browser "tmux split-window && tmux send-keys '/usr/bin/rtv -l %u && tmux kill-pane\n'"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
macro m set browser "setsid nohup mpv"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
# add video or audio to play queue using mpv (requires: task-spooler, mpv, youtube-dl)
macro q set browser "tsp mpv --ontop --no-border --force-window --autofit=500x280 --geometry=-15-10 %u"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
macro t set browser "tsp youtube-dl --add-metadata -ic -f best"; open-in-browser ; set browser urlportal.sh
macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best"; open-in-browser ; set browser urlportal.sh
macro y set browser "tmux split-window && tmux break-pane && tmux rename-window 'mpsyt-dl' && tmux send-keys 'mpsyt dlurl %u && tmux kill-window -t mpsyt-dl \n'"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
macro c set browser "tmux split-window && tmux send-keys '/usr/bin/mpv  %u && tmux kill-pane\n'"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
macro w set browser "tmux split-window && tmux send-keys '$BROWSER %u && tmux kill-pane\n'"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
macro z set browser "zathura"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
# c copies the link to the clipboard.
macro x set browser "echo -n %u | xclip -selection clipboard"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
# read saved files
macro s set browser "tmux split-window && tmux send-keys 'ranger ~/.newsboat/saved_articles && tmux kill-pane\n'"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
macro d set browser "dmenuhandler"; open-in-browser ; set browser ~/bin/scripts/urlportal.sh
#}}}