cron-able newsboat update script added for i3blocks

This commit is contained in:
Luke Smith 2018-09-29 16:02:40 -04:00
parent 30f8c087c5
commit 13b6ab3dc2
2 changed files with 14 additions and 0 deletions

View file

@ -2,6 +2,11 @@ command=/usr/lib/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=pango
[news]
command=cat ~/.newsup
interval=once
signal=6
[record]
command=cat ~/.recordingicon
interval=once

9
.scripts/newsup Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
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