cron-able newsboat update script added for i3blocks
This commit is contained in:
@@ -2,6 +2,11 @@ command=/usr/lib/i3blocks/$BLOCK_NAME
|
|||||||
separator_block_width=15
|
separator_block_width=15
|
||||||
markup=pango
|
markup=pango
|
||||||
|
|
||||||
|
[news]
|
||||||
|
command=cat ~/.newsup
|
||||||
|
interval=once
|
||||||
|
signal=6
|
||||||
|
|
||||||
[record]
|
[record]
|
||||||
command=cat ~/.recordingicon
|
command=cat ~/.recordingicon
|
||||||
interval=once
|
interval=once
|
||||||
|
|||||||
9
.scripts/newsup
Executable file
9
.scripts/newsup
Executable 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
|
||||||
Reference in New Issue
Block a user