cron-able newsboat update script added for i3blocks
This commit is contained in:
parent
30f8c087c5
commit
13b6ab3dc2
2 changed files with 14 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue