53 lines
1.9 KiB
Nix
53 lines
1.9 KiB
Nix
{ ... }: {
|
|
programs.newsboat = {
|
|
enable = true;
|
|
autoReload = true;
|
|
browser = "~/bin/myweb";
|
|
reloadThreads = 4;
|
|
reloadTime = 45;
|
|
extraConfig = ''
|
|
article-sort-order date
|
|
bind-key D mark-feed-read
|
|
bind-key J next-feed
|
|
bind-key K prev-feed
|
|
bind-key N toggle-article-read
|
|
bind-key SPACE open
|
|
bind-key a mark-feed-read
|
|
bind-key d toggle-article-read
|
|
bind-key i quit
|
|
bind-key j next
|
|
bind-key k prev
|
|
bind m article,articlelist pipe-to "neomutt -s\"RSS Article\" don@donharper.org" -- "Email article"
|
|
bind w article,articlelist pipe-to "emailtask" -- "Add article to task"
|
|
cleanup-on-quit yes
|
|
confirm-exit yes
|
|
delete-read-articles-on-quit yes
|
|
define-filter "not utube" "(feedtitle !~ \"UT - .*\") and (feedtitle !~ \".*pen.*\")"
|
|
define-filter "utube" "feedtitle =~ \"UT - .*\""
|
|
define-filter "pen" "feedtitle =~ \".*pen.*\""
|
|
define-filter "comic" "title =~ \".*comic.*\""
|
|
display-article-progress yes
|
|
download-full-page yes
|
|
error-log "~/.config/newsboat/error.log"
|
|
external-url-viewer "urlscan -c -d"
|
|
feed-sort-order firsttag
|
|
freshrss-login "don"
|
|
freshrss-password "Qz77ALbnEl*I2!%QZhs9K"
|
|
freshrss-show-special-feeds "no"
|
|
freshrss-url "https://rss.trex-halfbeak.ts.net/api/greader.php"
|
|
refresh-on-startup yes
|
|
show-read-articles no
|
|
show-read-feeds no
|
|
urls-source "freshrss"
|
|
# Theme Dracula
|
|
color listnormal color117 default
|
|
color listfocus color84 default
|
|
color info color136 color235
|
|
color background color244 color234
|
|
color article color231 default
|
|
color listnormal_unread color117 default
|
|
color listfocus_unread color84 default
|
|
highlight article "^(Title):.*$" color231 black
|
|
'';
|
|
};
|
|
}
|