Add newsboat config

This commit is contained in:
Oystein Kristoffer Tveit 2021-02-15 18:45:17 +01:00
parent 1c4cbdcef5
commit ff50e50e60
2 changed files with 47 additions and 0 deletions

3
general/.gitignore vendored
View File

@ -13,5 +13,8 @@
.ncmpcpp/error.log .ncmpcpp/error.log
.newsboat
!.newsboat/config
.xmonad/*.hi .xmonad/*.hi
.xmonad/*.o .xmonad/*.o

44
general/.newsboat/config Normal file
View File

@ -0,0 +1,44 @@
# general settings
auto-reload yes
max-items 50
# externel browser
browser "qutebrowser %u"
macro m set browser "mpv %u"; open-in-browser ; set browser "qutebrowser %u"
macro l set browser "qutebrowser %u"; open-in-browser ; set browser "qutebrowser %u"
# unbind keys
unbind-key ENTER
unbind-key j
unbind-key k
unbind-key J
unbind-key K
# bind keys - vim style
bind-key j down
bind-key k up
bind-key l open
bind-key h quit
# Theme
color background default default
color listnormal default default
color listnormal_unread default default
color listfocus black cyan
color listfocus_unread black cyan
color info default black
color article default default
# highlights
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