keep showing the newscount when newsboat is open
This commit is contained in:
parent
364689b9b7
commit
2742a65819
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
newsboat -x print-unread | cut -d' ' -f1
|
||||
lastfile=/tmp/lastnewscount.$USER
|
||||
last=$(cat $lastfile)
|
||||
(newsboat -x print-unread || echo $last) | cut -d' ' -f1 | tee $lastfile
|
||||
|
||||
|
|
Loading…
Reference in a new issue