From 558ef44f47f6cc282eefc0ca159a3ae8bbbf9e52 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 18 Jan 2026 11:06:02 -0300 Subject: Fix: renames "news" as "newsboat" --- news | 54 ------------------------------------------------------ newsboat | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 54 deletions(-) delete mode 100755 news create mode 100755 newsboat diff --git a/news b/news deleted file mode 100755 index 6f0ee16..0000000 --- a/news +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash -# -# Wrapper for news application. -# - -# Parameters -BASENAME="`basename $0`" -#APP="newsbeuter" -APP="newsboat" -OPML="$HOME/.custom/newsboat/opml.conf" - -# Check config folder -if [ ! -e "$HOME/.custom/$APP" ]; then - mkdir -p $HOME/.custom/$APP -fi - -# Check data folder -if [ ! -e "$HOME/.local/share/$APP" ]; then - mkdir -p $HOME/.local/share/$APP -fi - -# Compile a list of OPMLs from the feeds repository, if available -if [ -d "$HOME/apps/dotfiles/modules/feeds" ]; then - echo -n "opml-url " > $OPML - find $HOME/apps/dotfiles/modules/feeds -name '*.opml' | while read item; do - name="`basename $item .opml`" - base="`dirname $item | sed -e 's/^\.//'`" - - # Skip the sample - if [ "$name" == "sample" ] || [ "$name" == "all" ]; then - continue - fi - - echo -n ' "' >> $OPML - echo -n file://$item >> $OPML - echo -n '"' >> $OPML - done - echo "" >> $OPML -fi - -# Ensure a minimal config -if [ ! -e "$HOME/.custom/$APP/config" ]; then - touch $HOME/.custom/$APP/config - - if [ -e "$OPML" ]; then - echo "# Include some default OPML files" > $HOME/.custom/$APP/config - echo "include \"opml.conf\"" >> $HOME/.custom/$APP/config - fi -fi - -# Dispatch -# Put Tor config directly in $APP configuration -#TORSOCKS_DEBUG=-1 torify $APP -$APP diff --git a/newsboat b/newsboat new file mode 100755 index 0000000..6f0ee16 --- /dev/null +++ b/newsboat @@ -0,0 +1,54 @@ +#!/usr/bin/env bash +# +# Wrapper for news application. +# + +# Parameters +BASENAME="`basename $0`" +#APP="newsbeuter" +APP="newsboat" +OPML="$HOME/.custom/newsboat/opml.conf" + +# Check config folder +if [ ! -e "$HOME/.custom/$APP" ]; then + mkdir -p $HOME/.custom/$APP +fi + +# Check data folder +if [ ! -e "$HOME/.local/share/$APP" ]; then + mkdir -p $HOME/.local/share/$APP +fi + +# Compile a list of OPMLs from the feeds repository, if available +if [ -d "$HOME/apps/dotfiles/modules/feeds" ]; then + echo -n "opml-url " > $OPML + find $HOME/apps/dotfiles/modules/feeds -name '*.opml' | while read item; do + name="`basename $item .opml`" + base="`dirname $item | sed -e 's/^\.//'`" + + # Skip the sample + if [ "$name" == "sample" ] || [ "$name" == "all" ]; then + continue + fi + + echo -n ' "' >> $OPML + echo -n file://$item >> $OPML + echo -n '"' >> $OPML + done + echo "" >> $OPML +fi + +# Ensure a minimal config +if [ ! -e "$HOME/.custom/$APP/config" ]; then + touch $HOME/.custom/$APP/config + + if [ -e "$OPML" ]; then + echo "# Include some default OPML files" > $HOME/.custom/$APP/config + echo "include \"opml.conf\"" >> $HOME/.custom/$APP/config + fi +fi + +# Dispatch +# Put Tor config directly in $APP configuration +#TORSOCKS_DEBUG=-1 torify $APP +$APP -- cgit v1.2.3