From 13bb0a790639bbbf70781aa9ba4c7aa8bc6eda9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 13 Apr 2020 11:55:47 +0200 Subject: [PATCH] feat(newsboat): revive --- configs/default.nix | 2 +- configs/newsboat.nix | 36 ++++++++++++++++++++++++++++++++---- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/configs/default.nix b/configs/default.nix index 5420c63..2a23417 100644 --- a/configs/default.nix +++ b/configs/default.nix @@ -32,7 +32,7 @@ in ./mpv.nix ./nano.nix ./neovim.nix - # ./newsboat.nix (broken) + ./newsboat.nix ./nixpkgs-unstable.nix ./packages ./printing.nix diff --git a/configs/newsboat.nix b/configs/newsboat.nix index 50064d6..9f171a0 100644 --- a/configs/newsboat.nix +++ b/configs/newsboat.nix @@ -1,10 +1,38 @@ { + environment.shellAliases.newsboat = "${pkgs.newsboat}/bin/newsboat -u ~/cloud/syncthing/common/urls"; + home-manager.users.me = { programs.newsboat = { - enable = false; - urls = [ - { url = "https://kmein.github.io/meteora/atom.xml"; tags = [ "poetry" ]; } - ]; + enable = true; + extraConfig = '' + auto-reload yes + + 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 + + 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 + ''; }; }; }