summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/fetch_sfeed14
-rwxr-xr-x.local/bin/sf3
2 files changed, 15 insertions, 2 deletions
diff --git a/.local/bin/fetch_sfeed b/.local/bin/fetch_sfeed
index b89db72..08e6e41 100755
--- a/.local/bin/fetch_sfeed
+++ b/.local/bin/fetch_sfeed
@@ -1,8 +1,18 @@
#!/bin/sh
-pre=$(wc -l --total=only $XDG_DATA_HOME/sfeed/feeds/*)
+pre=$(wc -l $XDG_DATA_HOME/sfeed/feeds/* |
+ tail -n1 |
+ rev |
+ cut -b 7- |
+ rev |
+ tr -d ' ')
sfeed_update $XDG_CONFIG_HOME/sfeed/sfeedrc
-post=$(wc -l --total=only $XDG_DATA_HOME/sfeed/feeds/*)
+post=$(wc -l $XDG_DATA_HOME/sfeed/feeds/* |
+ tail -n1 |
+ rev |
+ cut -b 7- |
+ rev |
+ tr -d ' ')
if [ $post -gt $pre ]; then
exec herbe " $((post-pre)) new articles" &
fi
diff --git a/.local/bin/sf b/.local/bin/sf
new file mode 100755
index 0000000..89c9848
--- /dev/null
+++ b/.local/bin/sf
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sfeed_curses $XDG_DATA_HOME/sfeed/feeds/*