dotfiles/home/default/.config/newsboat/config
2024-01-27 15:42:16 +07:00

108 lines
3.7 KiB
Plaintext

#show-read-feeds no
auto-reload yes
#external-url-viewer "urlscan -dc -r 'linkhandler {}'"
## vim bindings
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 U show-urls
#bind-key D pb-download
#bind-key x pb-delete
browser linkhandler
macro , open-in-browser
#macro t set browser "qndl" ; open-in-browser ; set browser linkhandler
#macro a set browser "tsp yt-dlp --embed-metadata --embed-thumbnail -xc -f bestaudio/best --restrict-filenames" ; open-in-browser ; set browser linkhandler
#macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler
#macro w set browser "lynx" ; open-in-browser ; set browser linkhandler
#macro d set browser "dmenuhandler" ; open-in-browser ; set browser linkhandler
#macro c set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser linkhandler
#macro C set browser "setsid -f $TERMINAL -e pipe-viewer --comments=%u" ; open-in-browser ; set browser linkhandler
#macro p set browser "peertubetorrent %u 480" ; open-in-browser ; set browser linkhandler
#macro P set browser "peertubetorrent %u 1080" ; open-in-browser ; set browser linkhandler
#macro y set browser "setsid -f flatpak run io.freetubeapp.FreeTube %u >/dev/null 2>&1" ; open-in-browser ; set browser linkhandler
# random
#color background white black
#color listnormal color244 black
#color listfocus default red
#color listnormal_unread white default
#color listfocus_unread default red
#color info black yellow
#color article white black
# gruvbox
#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
color info white default bold
#color listfocus white color8
#color listfocus_unread white color8 bold
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
#color info white color8
#color listnormal white black
#color listnormal_unread white black bold
#color article white black
#color listfocus white color8
#color listfocus_unread color8 black bold
#color listfocus cyan color8 bold
#color listfocus_unread cyan color8 bold
#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 info white color8
#color article white default
#color listnormal cyan default
#color listnormal_unread blue default
#color listnormal white default bold
#color listnormal_unread color8 default
highlight all "--.*--" white
highlight all "---.*---" yellow
highlight feedlist ".*(0/0))" black
highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan 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