diff options
-rwxr-xr-x | .local/bin/fetch_sfeed | 8 | ||||
-rwxr-xr-x | .local/bin/ref_sfeed | 10 |
2 files changed, 8 insertions, 10 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 diff --git a/.local/bin/ref_sfeed b/.local/bin/ref_sfeed deleted file mode 100755 index 7d2a7c5..0000000 --- a/.local/bin/ref_sfeed +++ /dev/null @@ -1,10 +0,0 @@ -#!/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 - herbe "pre: $pre" & - herbe "post: $post" & - exec herbe " $((post-pre)) new articles" & -fi |