Skip to content

Instantly share code, notes, and snippets.

@Janik-Haag
Created July 25, 2023 20:09
Show Gist options
  • Save Janik-Haag/49dd515ec88a7b51f344bf0d0656d4e5 to your computer and use it in GitHub Desktop.
Save Janik-Haag/49dd515ec88a7b51f344bf0d0656d4e5 to your computer and use it in GitHub Desktop.
My newsboat home-manager config
{ config, ... }:
{
sops.secrets."miniflux" = {
mode = "0400";
path = "$XDG_RUNTIME_DIR/secrets/miniflux";
};
programs.newsboat = {
enable = true;
autoReload = true;
extraConfig = ''
# feed source
urls-source "miniflux"
miniflux-url "https://rss.example.com/"
miniflux-login "janik"
miniflux-passwordfile "`echo ${config.sops.secrets."miniflux".path}`"
# Vim keybindings
unbind-key h
unbind-key j
unbind-key k
unbind-key l
bind-key h quit
bind-key j down
bind-key k up
bind-key l open
# Dark theme based on Dracula color scheme for newsboat.
#
# In order to use this color scheme, you must first configure
# your terminal emulator to use the Dracula palette.
# See <https://draculatheme.com/> for more information.
color background default default
color listnormal color255 default
color listfocus color238 color255 standout
color listnormal_unread color47 default
color listfocus_unread color238 color47 standout
color info color141 color236
# highlights
highlight all "---.*---" yellow
highlight feedlist ".*(0/0))" black
highlight article "(^Feed:|^Title:|^Date:|^Link:|^Author:)" cyan default bold
highlight article "https?://[^ ]+" yellow 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
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment