summaryrefslogtreecommitdiffstats
path: root/.local/bin/fetch_sfeed
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.local/bin/fetch_sfeed8
1 files changed, 8 insertions, 0 deletions
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