voidrice/.scripts/newsup
2018-10-14 13:05:07 -04:00

10 lines
292 B
Bash
Executable file

#!/bin/sh
ping -q -t 1 -c 1 `ip r | grep -m 1 default | cut -d ' ' -f 3` >/dev/null || exit
echo "📰 🔃" > ~/.newsup
pkill -RTMIN+6 i3blocks
printf "Loading new RSS entries for newsboat...\\n"
/usr/bin/newsboat -x reload &&
printf "Done.\\n"
echo "" > ~/.newsup
pkill -RTMIN+6 i3blocks