From 4d7fbc33a139d6484ae86c45b570b2c99fc737ef Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Thu, 4 Dec 2025 18:05:00 +0200 Subject: Test --- home/newsboat.nix | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 home/newsboat.nix (limited to 'home/newsboat.nix') diff --git a/home/newsboat.nix b/home/newsboat.nix new file mode 100644 index 0000000..c95b95a --- /dev/null +++ b/home/newsboat.nix @@ -0,0 +1,59 @@ +{ + vars, + config, + pkgs, + ... +}: + +{ + xdg.configFile."/home/petri/.config/newsboat/urls".text = '' + "query:Unread Articles:unread = \"yes\"" + ''; + + programs.newsboat = { + enable = true; + autoReload = true; + browser = "\"${pkgs.chawan}/bin/cha %u\""; + reloadTime = 2; + extraConfig = '' + # special + macro o set browser "rdrview -T title,body -B cha %u" ; open-in-browser ; set browser "cha %u" + + # download + prepopulate-query-feeds yes + download-full-page yes + urls-source "miniflux" + miniflux-url "https://flux.tammi.cc" + miniflux-tokenfile ${config.age.secrets.miniflux_api_key.path} + + # operation + goto-next-feed no + miniflux-show-special-feeds "no" + feed-sort-order unreadarticlecount-asc + article-sort-order date-asc + + # keys + 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 D pb-download + bind-key U show-urls + bind-key x pb-delete + bind-key o open-in-browser + + include ${pkgs.newsboat}/share/doc/newsboat/contrib/colorschemes/solarized-dark + ''; + }; +} -- cgit v1.2.3-70-g09d2