summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.local/bin/ref_sfeed8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/ref_sfeed b/.local/bin/ref_sfeed
new file mode 100755
index 0000000..06593f3
--- /dev/null
+++ b/.local/bin/ref_sfeed
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+pre=$(wc -l --total=only $XDG_DATA_HOME/sfeed/feeds/*)
+sfeed_update $XDG_CONFIG_HOME/sfeed/sfeedrc >/dev/null 2>1
+post=$(wc -l --total=only $XDG_DATA_HOME/sfeed/feeds/*)
+if [ $post -gt $pre ]; then
+ exec herbe " $((post - pre)) new articles" &
+fi