diff options
-rw-r--r-- | bash/symlinks.sh | 1 | ||||
-rw-r--r-- | newsboat/urls | bin | 770 -> 706 bytes | |||
-rwxr-xr-x | scripts/atom.sh | 20 |
3 files changed, 15 insertions, 6 deletions
diff --git a/bash/symlinks.sh b/bash/symlinks.sh index 70e66af..573c817 100644 --- a/bash/symlinks.sh +++ b/bash/symlinks.sh @@ -51,7 +51,6 @@ ln -fs "$DOTFILES/tmux/tmux-gnu-linux.conf" ~/.tmux-gnu-linux.conf ## Newsboat mkdir -p ~/.newsboat -ln -fs "$DOTFILES/newsboat/urls" ~/.newsboat/urls ln -fs "$DOTFILES/newsboat/config" ~/.newsboat/config ## NixOS diff --git a/newsboat/urls b/newsboat/urls Binary files differindex 6f4ddff..ce88f4c 100644 --- a/newsboat/urls +++ b/newsboat/urls diff --git a/scripts/atom.sh b/scripts/atom.sh index 73c35ec..d1e968f 100755 --- a/scripts/atom.sh +++ b/scripts/atom.sh @@ -6,14 +6,24 @@ if [[ ! -d "node_modules" ]]; then npm i rss fi +RSS_DIR="$HOME/.newsboat" +LINKS_OUT="$RSS_DIR/gen/buku.urls" + +mkdir -p "$RSS_DIR/gen" + +# Empty the text file +> "$LINKS_OUT" + feed() { local tag="$1" local tmp="/tmp/$tag.json" buku -t "$tag" --json > "$tmp" - node atom.js "$tag" "$tmp" + node atom.js "$tag" "$tmp" > "$RSS_DIR/gen/$1.xml" + echo "file://$RSS_DIR/gen/$1.xml" >> "$LINKS_OUT" } -mkdir -p ~/.newsboat -feed ril > ~/.newsboat/ril.xml -feed simple-archive > ~/.newsboat/simple-archive.xml -feed inbox > ~/.newsboat/inbox.xml +feed ril +feed simple-archive +feed ril-batch + +cat "$DOTFILES/newsboat/urls" <(echo) "$LINKS_OUT" > "$RSS_DIR/urls" |