From 8c8a42f54c6767ab24a4149157b05153e1c69d6f Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 5 Oct 2025 21:57:07 +0200 Subject: up --- .local/bin/fetch_sfeed | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 .local/bin/fetch_sfeed (limited to '.local/bin/fetch_sfeed') diff --git a/.local/bin/fetch_sfeed b/.local/bin/fetch_sfeed new file mode 100755 index 0000000..0800db1 --- /dev/null +++ b/.local/bin/fetch_sfeed @@ -0,0 +1,8 @@ +#!/bin/sh + +pre=$(wc -l --total=only /home/jozan/.local/share/sfeed/feeds/*) +sfeed_update /home/jozan/.config/sfeed/sfeedrc >/dev/null 2>&1 +post=$(wc -l --total=only /home/jozan/.local/share/sfeed/feeds/*) +if [ $post -gt $pre ]; then + exec herbe " $((post-pre)) new articles" & +fi -- cgit v1.2.3