diff --git a/.config/i3blocks/config b/.config/i3blocks/config index e7af9e2..9916f96 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -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 diff --git a/.scripts/newsup b/.scripts/newsup new file mode 100755 index 0000000..986524a --- /dev/null +++ b/.scripts/newsup @@ -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